Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReplaceOptions<Document>

Options for documents replacing.

inheritdoc

FindOptions}

Type parameters

  • Document

Hierarchy

  • Omit<FindOptions<Document>, "sort" | "projection">
    • ReplaceOptions

Properties

Properties

index

index: IndexedProperty<Document>

Determines on which index to perform search.
When IndexedProperty.value is given, will perform search only on documents having IndexedProperty.name equal to that value.

multiple

multiple: boolean

Whether to return all found documents, or the first one.

default

true

upsert

upsert: boolean

Whether to insert replacement if no matches found.

default

false