Hi all,
We've been using reactivemongo in our project and have a question surrounding `WriteResult`. It seems by calling insert or update you receive a failed Future if there are any errors.
If there aren't any errors you get a sucessful Future. However, the successful Future returns the `WriteResult` case class which includes possible errors. I see these `WriteError` error attributes are used to decide whether to fail the Future or not in the library.
But this seems to us that it is never possible to get a WriteResult with an error in as a user of this API? This seems quite misleading to us and we think the `insert` and `update` functions should only return data associated with the successful result if the Future is successful. In this particular case, I'd assume only a number of affected documents would be returned.
Are we missing something in this design? Our main problem is that it seems misleading. Should we open a PR for this?
Thanks,
Andrew