📅  最后修改于: 2022-03-11 14:48:56.886000             🧑  作者: Mango
var filter = new BsonDocument();
var options = new FindOptions
{
// Get 100 docs at a time
BatchSize = 100
};
using (var cursor = await test.FindAsync(filter, options))
{
await cursor.ForEachAsync(doc =>
{
// process doc
});
}