Any guidance is appreciated.
So, I found that the update method has been deprecated.
updateOne instead, an optional callback function can be included, and this function has to be given two arguments, where the second argument for the callback is the result object.
This callback function’s result object has a property called
result, which is an object, and that has a property called
updateOne operation was executed correctly, then the
ok property is returned
I’m guessing this applies to most other CRUD operations - I’m not sure what exceptions exist, but on checking
insert both had similar
result objects being returned in the optional callback.