Interface ReplaceOneModel<TSchema>

Type Parameters

Hierarchy

  • ReplaceOneModel

Properties

collation?: CollationOptions

Specifies a collation.

filter: Filter<TSchema>

The filter to limit the replaced document.

hint?: Hint

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

replacement: WithoutId<TSchema>

The document with which to replace the matched document.

upsert?: boolean

When true, creates a new document if no document matches the query.

Generated using TypeDoc