-
Type:
Improvement
-
Resolution: Done
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: API, Documentation
-
None
-
Environment:Any
-
None
-
None
-
None
-
None
-
None
-
None
The documentation for mongocxx::collection::find_one says that it throws a mongocxx::exception::query exception if the query fails. It's not clear whether failure is meant to include the case where no documents are returned. It appears that the actual behavior is to return an instance of the return type with the value set to nullopt. This needs to be described. An example of use would also be useful and welcome.