When using the commands as below, it returning null.
var pipeline = new BsonDocument[] {
new BsonDocument{{"$group", new BsonDocument{{"_id", "$BrandId"}}}}
};
var brands = context
.Items.Aggregate<BsonDocument>(pipeline);
Data ex:
The Aggregation method I have as shown below: