Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb aggregate $filter check if exists

db.test.aggregate({$group:{_id:{$gt:["$field", null]}, count:{$sum:1}}})
 
PREVIOUS NEXT
Tagged: #mongodb #aggregate #check #exists
ADD COMMENT
Topic
Name
8+7 =