Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb check for array not empty query

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