mongodb check for array not empty query
snippet in javascript

mongodb check for array not empty query

user4916

collection.find({ arrayElementName: { $exists: true, $not: {$size: 0} } })