updateById

Updates an Entity by its id.

Author

Jan Müller

Parameters

<receiver>
The target collection.
id
The id of the Entity.
T
The type of the Entity.
update
The update Bson.
suspend fun <T : Entity> CoroutineCollection<T>.updateById(id: String, update: Bson): T?