Details
-
Improvement
-
Resolution: Works as Designed
-
Major - P3
-
None
-
1.2.0
-
None
-
None
-
Mac OS Catalina
Description
`DeleteOne` method on the collection returns a value of type `*mongo.DeleteResult` which has one attribute `DeletedCount` whose value can either be 0 or 1. It would have been better if there was some way of indicating error when no document was found to be deleted instead of manually checking the `DeletedCount` attribute.
`DeletedCount` doesn't seem very useful for testing purposes.