0

Suppose I have a field which includes varying number of multiple values for each item. I like to find items with N values in that field. How can I write this query for mongodb?

{ "_id" : ObjectId("56fde213ddf2ec32df886432"), 
"values" : ["A","B" ... ]
}

For this example I like to find items having N values in "values" field?

erogol
  • 13,156
  • 33
  • 101
  • 155

0 Answers0