📜  mongodb c# 批量查找 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.886000             🧑  作者: Mango

代码示例2
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
    });
}