Skip to content

Instantly share code, notes, and snippets.

@danared
Created April 2, 2015 16:06
Show Gist options
  • Save danared/ed3cceccae16cdb1aa9d to your computer and use it in GitHub Desktop.
Save danared/ed3cceccae16cdb1aa9d to your computer and use it in GitHub Desktop.
var filter = new BsonDocument("x", new BsonDocument("$gte", 100));
await collection.Find(filter).ForEachAsync(async document =>
{
await ProcessDocumentAsync(document);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment