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

x/hex/src/data/deps.ts>mongo.DeleteOptions

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface mongo.DeleteOptions
import { type mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { DeleteOptions } = mongo;

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.