select all records were the field is not empty mongodb code example
Example: mongodb filter empty array
db.collection.find({arrayElementName : {$exists:true, $size:0}})
db.collection.find({arrayElementName : {$exists:true, $size:0}})