Group with Builders

Mongo C# driver has a method for grouping MongoCollection.Aggregate().Group(ProjectionDefinition<TDocument, TNewResult> group). But how do I make ProjectDefination using Builder for grouping? I know I can use raw BsonDocument and cast it to ProjectDefination. But I don’t want to do that. is there any way to build ProjectDefination using builder for group?

1 Like