How can I select documents based on values within the embedded documents? For instance, I have class r that has a list of i classes. I want to select all r’s that have i.name==”foo”.
How can I select documents based on values within the embedded documents? For instance,
Share
If you want to select all
r‘s that have at least oneiwithi.Name == "foo"you can use this query:If you want to select all
r‘s that have alli‘s withi.Name == "foo"you can use this one: