Example document:
{
"aliases" : {
"name" : [
"Brinton McKay",
"Dr. Theopolis",
"Galactic Spiral Sound",
"Highrise",
"Memory Boy",
"Semblance Factor",
"Spy (2)",
"Three O'Clock High"]}
}
How i can count the number of "name" under "aliases"? I would like to print all _id who which contains more than 3 aliases. any help would be appreciated.
Please check the below query :
OR
PS : you can see the documentation in below link : http://docs.mongodb.org/manual/reference/operator/query/where/