I have a MongoDB collection with documents in the following format:
{ \"_id\" : ObjectId(\"4e8ae86d08101908e1000001\"), \"name\" : [\"Name\"], \"zipcod
None of the above worked for me. This one did so I'm sharing it:
db.collection.find( {arrayName : {$exists:true}, $where:'this.arrayName.length>1'} )