how to check if the values in object is greater than 0 in mongodb code example
Example: query document array size greater than 1
// Find all docs that have at least two name array elements.
db.accommodations.find({'name.1': {$exists: true}})
// Find all docs that have at least two name array elements.
db.accommodations.find({'name.1': {$exists: true}})