fun <T> MongoCollection<T>.updateOneById(id: Any, update: Any, options: UpdateOptions = UpdateOptions()): Maybe<UpdateResult>
(source)
Update a single document in the collection according to the specified arguments.
options
- the options to apply to the update operation
Return
the result of the update one operation
fun <T> MongoCollection<T>.updateOneById(clientSession: ClientSession, id: Any, update: Any, options: UpdateOptions = UpdateOptions()): Maybe<UpdateResult>
(source)
Update a single document in the collection according to the specified arguments.
clientSession
- the client session
options
- the options to apply to the update operation
Return
the result of the update one operation