mongodb check if array is empty in aggregate cond 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} } })