Question : mongodb aggregate $filter check if exists
Answered by : florin-relea
db.test.aggregate({$group:{_id:{$gt:["$field", null]}, count:{$sum:1}}})
Source : | Last Update : Wed, 27 Apr 22
Answered by : florin-relea
db.test.aggregate({$group:{_id:{$gt:["$field", null]}, count:{$sum:1}}})
Source : | Last Update : Wed, 27 Apr 22