python 2.7 - mongodb - querying & projecting element value from nested array -


i have nested arrays below in 1 of collections,

enter image description here

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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -