Collection.findOne

Convenience function for getting just one element from a find. Must be deleted with unlock().

struct Collection
ReturnType
findOne
(
ReturnType = BSON
T1 = BSON
T2 = BSON
)
(
T1 filter = empty!T1()
,
T2 options = empty!T2()
,
const mongoc_read_prefs_t* readPrefs = null
)

Meta