Verificação de filtro agregada $ MONGODB Se houver

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