Zkuste seskupit podle null.
db.murders.aggregate([{$group: {_id:null, pop: {$avg:"$murders"} } }])
Další informace:mongo-average-aggregation-query-with-no-group
Zkuste seskupit podle null.
db.murders.aggregate([{$group: {_id:null, pop: {$avg:"$murders"} } }])
Další informace:mongo-average-aggregation-query-with-no-group