deleteOne
open suspend override fun deleteOne(options: DeleteOneOptions<Document>.() -> Unit, filter: FilterQuery<Document>.() -> Unit)(source)
Deletes the first document found that matches filter.
Example
class User(
val name: String,
val age: Int
)
collection.deleteOne {
User::name eq "Bob"
}
Content copied to clipboard