-
Jan 22nd, 2013, 04:35 PM
#1
$elemMatch in field.include
Does Spring Data support the elemMatch projections?
http://docs.mongodb.org/manual/reference/projection/elemMatch/
Using the query.fields.include() it does not appear to work, since this method treats every field as a <field>:1 in the underlying mongo query. What I really want is a
{ _id: 0, dependents: { $elemMatch: { school: 102 }}};
Can anyone let me know if this is possible with Spring Data or even the Java Driver?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules