Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb filter empty array

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