I want to identify a successful insertion into my mongo database, I have the options of using either InsertOne or InsertOneAsync. Neither according to the documentation returns a result though, so are there any options available to me?
If the method executes, the insertion was successful. Otherwise, the method will throw an exception.
Check out the related question: MongoDB (server v 2.6.7) with C# driver 2.0: How to get the result from InsertOneAsync.
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