There is a little issue in pymongo. In mongo shell, we can filter nested field :
> db.example.save({"bla":"ble", "foo":{"bar":1}})
> db.example.find({}, {"foo":{"bar":1}})
{"_id" : "4a24f22c09b1396a31ddae14" , "foo" : {"bar" : 1}}
but with pymongo, it doen't work:
>>> list(db.example.find({}, ["foo.bar"]))
[]
Any ideas ?
Nicolas