empty array from get method mongodb code example
Example 1: mongodb filter empty array
db.collection.find({arrayElementName : {$exists:true, $size:0}})
Example 2: mongodb query to check empty array
collection.find({ arrayElementName: { $exists: true, $not: {$size: 0} } })