I\'ve just started using mongo db, I\'m using rockmongo client and my ubuntu terminal as another client. I\' ve realized the query using group aggregation like this:
You can run aggregate query in "tools->command" panel in your homepage of rockmongo. You may enter query in the input panel like this:
{
aggregate : "ns",
pipeline : [
...
]
}
That will be ok! I have tried, and it works!
Full Example:
{ aggregate : "COLLECTION_NAME",
pipeline : [
{ $unwind : "$SUB_ARRAY" },
{ $match: {"SUB_ARRAY.field": "value"}},
]
}