var collection = database.GetCollection("myCollection"); var aggregate = collection.Aggregate() .Skip(5);
var collection = database.GetCollectionIn this example, the aggregation pipeline first filters the documents with the "active" status using the Match method, and then skips the first 10 documents using the Skip method. The IAggregateFluent interface is part of the MongoDB.Driver package library.("myCollection"); var aggregate = collection.Aggregate() .Match(Builders .Filter.Eq("status", "active")) .Skip(10);