You can do a project if you want:
db.mycollection.find({"records.feild1":"feild1val"}, {"records.0": 1})
But if you need to query on the record attributes frequently, you may
want to place them in their own collection.
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>
db.mycollection.find({"records.feild1":"feild1val"}, {"records": {$slice: 1}})