Get All 'documents' from MongoDB 'collection'
问题 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 static IMongoCollection<Project> SpeCollection = db.GetCollection<Project>("collection_Project"); And I followed what is explained in this MongoDB tutorial. I adjusted it for my needs, like- var documents = await SpeCollection.Find(new Project()).ToListAsync(); However, I keep having the following error- MongoDB.Driver.IMongoCollection does