Quantcast
Viewing all articles
Browse latest Browse all 128

Spring data mongidb $elemMatch using Criteria API

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?

Viewing all articles
Browse latest Browse all 128

Trending Articles