Interface ClientDeleteOneModel<TSchema>

interface ClientDeleteOneModel<TSchema> {
    collation?: CollationOptions;
    filter: Filter<TSchema>;
    hint?: Hint;
    name: "deleteOne";
    namespace: string;
}

Type Parameters

  • TSchema

Hierarchy (view full)

Properties

collation?: CollationOptions

Specifies a collation.

filter: Filter<TSchema>

The filter used to determine if a document should be deleted. For a deleteOne operation, the first match is removed.

hint?: Hint

The index to use. If specified, then the query system will only consider plans using the hinted index.

name: "deleteOne"
namespace: string

The namespace for the write.

A namespace is a combination of the database name and the name of the collection: <database-name>.<collection>. All documents belong to a namespace.