With a document like:
{
"obj1" : [
{
"name" : "blue",
"count" : 4
},
{
"name" : "green",
"count" : 6
}
]
}
Is it possible to query for a obj1.name = "blue"
to obtain the matching element of the array, not the document?:
{
"name" : "blue",
"count" : 4
}
Thanks in advance!
I think it is not possible now. But there is open issue for returning nested inner objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With