I have a MongoDB collection with documents in the following format:
{ \"_id\" : ObjectId(\"4e8ae86d08101908e1000001\"), \"name\" : [\"Name\"], \"zipcod
I know its old question, but I am trying this with $gte and $size in find. I think to find() is faster.
db.getCollection('collectionName').find({ name : { $gte : { $size : 1 } }})