You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you can build and test the 'hasThisElement' branch, I have a fix that I think will get you what you need. Building on the existing tests, this is what the test for the new elemMatch() method looks like:
Correct me if I am wrong but as I can see current Morphia implementation of
$elemMatch
(i.e.FieldEnd#hasThisElement
) doesn't support multiple criteria for array elements or multiple criteria for array of documents.So there is no way to create such query using morphia:
db.restaurants.find({grades : { $elemMatch:{"score":{$gt : 80 , $lt :100}}}})
stackoverflow question
I didn't find any linked issues here.
The text was updated successfully, but these errors were encountered: