var users = database.GetCollection<ApplicationUser>("users");
There is no FindAll
function in Mongodb.driver 2.0.
You should find with empty filter like users.Find(new BsonDocument()).ToListAsync();
Ugly straightforward approach:
await (await users.FindAsync(_ => true)).ToListAsync()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With