javascript mongodb empty array check code example
Example: mongodb check for array not empty query
collection.find({ arrayElementName: { $exists: true, $not: {$size: 0} } })
collection.find({ arrayElementName: { $exists: true, $not: {$size: 0} } })