fun <T : Any> MongoCollection<T>.findOneById(id: Any): Maybe<T>
(source)
Finds the document that match the id parameter.
fun <T : Any> MongoCollection<T>.findOneById(clientSession: ClientSession, id: Any): Maybe<T>
(source)
Finds the document that match the id parameter.