mongodb query to check empty array
collection.find({ arrayElementName: { $exists: true, $not: {$size: 0} } })
3
4
db.collection.update({}, { $set : {'myArray': [] }} , {multi:true} )
Thank you!
4
0
Are there any code examples left?
New code examples in category Other