mongodb array size greater than
db.accommodations.find( { $where: "this.name.length > 1" } );
Source: stackoverflow.com
where size of array is greater than mongo
db.collection.find({"items":{$gt:[{$size:"items"},0]}})
Source: stackoverflow.com