I want to create a query using $elemMatch as described in http://docs.mongodb.org/manual/refer...ion/elemMatch/
{ "zipcode": "63109" },{ "students": { $elemMatch: { "school": "102" } } }
but i am only able to create query like
{ "zipcode": "63109" , "students": { $elemMatch: { "school": "102" } } } which produces different result.
What is the method to create first query using Spring data mongo Criteria API?
{ "zipcode": "63109" },{ "students": { $elemMatch: { "school": "102" } } }
but i am only able to create query like
{ "zipcode": "63109" , "students": { $elemMatch: { "school": "102" } } } which produces different result.
What is the method to create first query using Spring data mongo Criteria API?