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

findOneById

fun <T : Any> MongoCollection<T>.findOneById(id: Any): Mono<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): Mono<T> (source)

Finds the document that match the id parameter.

Parameters

clientSession - the client session

id - the object id