db.collection.find({
fieldName: { $eleMatch: { $ne: null } }
})
collection is the collection name
fieldName is the array field
db.collection.find({
fieldName: { $eleMatch: { $ne: null } }
})
collection is the collection name
fieldName is the array field