mongodb query non-empty array

db.collection.find({
	fieldName: { $eleMatch: { $ne: null } }
})

collection is the collection name
fieldName is the array field

Guess you like

Origin blog.csdn.net/wwrzyy/article/details/129999082