kmongo / org.litote.kmongo.rxjava2 / com.mongodb.reactivestreams.client.MongoCollection / findOneById

findOneById

fun <T : Any> MongoCollection<T>.findOneById(id: Any): Maybe<T> (source)

Finds the document that match the id parameter.

Parameters

id - the object id

fun <T : Any> MongoCollection<T>.findOneById(clientSession: ClientSession, id: Any): Maybe<T> (source)

Finds the document that match the id parameter.

Parameters

clientSession - the client session

id - the object id