I have a mango query:
{
"selector": {
"age":{
"$eq": 22
}
}
}
I want to know the number of documents that satisfy this criteria.
I know we can use map reduce functions to achieve this, but is there any way to do this by using mango query like using some key like "count" in the query itself as we do for "sort", and "fields".
I am firing mango query through rest client and I want the number of documents as the response of the query.