How to get collection back after insert/update in mongodb?

edx
edx
66 Points
23 Posts

I'm using mongodb.driver in .net core project. In this using following method to insert and update collections:

mongoDB.GetCollection("COLLECTION_NAME").InsertOneAsync(doc);
mongoDB.GetCollection("COLLECTION_NAME").ReplaceOne(filter, doc);

How to get collection back after insert/update in mongodb?

Views: 94
Total Answered: 0
Total Marked As Answer: 0
Posted On: 08-Jun-2020 02:35

Share:   fb twitter linkedin
Answers
 Log In to Chat