there ought to be a way to select only the x.y field to be returned. using {x: {y: 1}} returns both x.y and x.z and using
{"x.y": 1}returns nothing at all.
> db.bar.find()
> db.bar.save({x:
, w: 2})
> db.bar.find({}, {x: {y: 1}})
{"_id" : "4a255950538cba3e38eafcc4" , "x" : {"y" : 5 , "z" : 6}}
> db.bar.find({},
)
>