kmongo / org.litote.kmongo.coroutine / CoroutineCollection / findOneById

findOneById

suspend fun findOneById(id: Any): T? (source)

Finds the document that match the id parameter.

Parameters

id - the object id

suspend fun findOneById(id: Any, clientSession: ClientSession): T? (source)

Finds the document that match the id parameter.

Parameters

id - the object id

clientSession - the client session with which to associate this operation