fun <T : Any> MongoCollection<T>.replaceOneById(id: Any, replacement: T): Publisher<UpdateResult>
(source)
Replace a document in the collection according to the specified arguments.
replacement
- the replacement document
fun <T : Any> MongoCollection<T>.replaceOneById(id: Any, replacement: T, options: ReplaceOptions): Publisher<UpdateResult>
(source)
Replace a document in the collection according to the specified arguments.