Announcement Announcement Module
Collapse
No announcement yet.
filtering on fields of embedded documents using MongoDB Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • filtering on fields of embedded documents using MongoDB

    Hi

    I'm new to NoSQL and Spring Data and am trying to build a query using MongoDB where the structure can be simplified as:

    - "team" documents that contain embedded "member" documents
    - member documents have, say, lastname and firstname as data fields

    What I'm trying to do is to find out:

    - teams where (not) all members have the same firstname
    - same as above, by being able to specify the wanted firstname

    Is that possible? Can anyone help?

    Thanks!
Working...
X