Mongodb Aggregate $filter Check If Exists

[Solved] Mongodb Aggregate $filter Check If Exists | Perl - Code Explorer | yomemimo.com
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

Answers related to mongodb aggregate $filter check if exists

Code Explorer Popular Question For Perl