Introduction to MongoDb with .NET part 28: aggregation in the .NET driver using loose typing and AppendStage
May 17, 2016 1 Comment
Introduction
In the previous post we started looking into MongoDb aggregations via the .NET driver. Our first example was a single $sort stage using the AppendStage function. The AppendStage function is generic in the sense that it can accept just any type of aggregation stage to be added to the pipeline. We also introduced the BsonDocument object which offers a way to describe MongoDb documents in a loosely typed way.
In this post we’ll continue our discussion and build the pipeline we’re targeting.