I need to retrieve all the documents that are in my collection in MongoDB, but I cannot figure out how. I have declared my \'collection\' like this-
private stat
If you want all documents, why not use Find all?
Find all
var documents = await SpeCollection.Find(new BsonDocument()).ToListAsync();