find return in mongodb as an Empty array but field is present in database code example
Example 1: mongodb check for array not empty query
collection.find({ arrayElementName: { $exists: true, $not: {$size: 0} } })
Example 2: mongodb filter empty array
db.collection.find({arrayElementName : {$exists:true, $size:0}})