Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/model/dependencies/mongo.ts>DeleteOptions

model based mongo for deno
Latest
interface DeleteOptions
import { type DeleteOptions } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";

Properties

optional
ordered: boolean

Optional. If true, then when a delete statement fails, return without performing the remaining delete statements. If false, then when a delete statement fails, continue with the remaining delete statements, if any. Defaults to true.

optional
writeConcern: Document

Optional. A document expressing the write concern of the delete command. Omit to use the default write concern.

optional
collation: Document

Optional. Specifies the collation to use for the operation. See https://docs.mongodb.com/manual/reference/command/delete/#deletes-array-collation

optional
comment: Document

Optional. A user-provided comment to attach to this command.

optional
limit: number

The number of matching documents to delete. Specify either a 0 to delete all matching documents or 1 to delete a single document.

optional
hint: Document | string

Optional. A document or string that specifies the index to use to support the query predicate. The option can take an index specification document or the index name string. If you specify an index that does not exist, the operation errors.