Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReplaceOneModel<TSchema>

Type parameters

Hierarchy

  • ReplaceOneModel

Index

Properties

Optional collation

collation?: CollationOptions

Specifies a collation.

filter

filter: Filter<TSchema>

The filter to limit the replaced document.

Optional hint

hint?: Hint

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

replacement

replacement: TSchema

The document with which to replace the matched document.

Optional upsert

upsert?: boolean

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

Generated using TypeDoc