I am trying to get the average of a whole field using the aggregation framework in Mongo. However i can\'t seem to find any example that uses it without a group parameter. <
For more details please visit the following link: https://docs.mongodb.com/manual/reference/operator/aggregation/group/index.html
db.EvaluatedSentiments.aggregate([
{
$group:{_id:null,avgbvc: {$avg:"$bvc"}}
}
]).forEach(printjson)