mongoDB agregat $ filter check jika ada

db.test.aggregate({$group:{_id:{$gt:["$field", null]}, count:{$sum:1}}})
florinrelea