DeleteOne
class DeleteOne<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document> (source)
Deleting a single document from a collection.
Example
users.deleteOne {
User::name eq "Patrick"
}
Content copied to clipboard
External resources
Functions
Link copied to clipboard
Returns a simplified (but equivalent) expression to the current expression.
Link copied to clipboard
Writes the result of simplifying to a new Bson.
Link copied to clipboard
Writes the result of simplifying this expression into writer.