python 2.7 - mongodb - querying & projecting element value from nested array -
i have nested arrays below in 1 of collections,
how retrieve value specific sub array & don't need of other fields in document. have tried using following query didn't me expected output,
query:
db.getcollection('my_collection').find({"_id":"08d4608a-e6c4-1bd8-80e6-8d1ac448c34b"},{"_id":0,"customproperties.0.1":1})
you can try
db.getcollection.find({ "somearray.somenestedarray.name": "value" })
Comments
Post a Comment