You could do
db.collection.find({},{'info.x':1, 'info.y':1})
but that means listing each and every item of the info object in the projection – which may or may not be what you’re looking for.
You could do
db.collection.find({},{'info.x':1, 'info.y':1})
but that means listing each and every item of the info object in the projection – which may or may not be what you’re looking for.