Queries the collection for existing documents.
auto findOne(R, T, U)(
QueryFlags flags = QueryFlags
auto findOne(R, T)(
By default, a Bson value of the matching document is returned, or
when no document matched. For types R that are not Bson, the returned value is either
R, or of type , if
R is not a reference/pointer type.
Exception if a DB communication error or a query error occured.
© 2012-2016 RejectedSoftware e.K.
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.