Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb filter empty array

db.collection.find({arrayElementName : {$exists:true, $size:0}})
 
PREVIOUS NEXT
Tagged: #mongodb #filter #empty #array
ADD COMMENT
Topic
Name
5+5 =