Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FindOneAndReplaceOption

Hierarchy

  • FindOneAndReplaceOption

Index

Properties

Optional maxTimeMS

maxTimeMS: undefined | number

The maximum amount of time to allow the query to run.

Optional projection

projection: Object

Limits the fields to return for all matching documents.

Optional returnOriginal

returnOriginal: undefined | true | false

When false, returns the updated document rather than the original. The default is true.

Optional sort

sort: Object

Determines which document the operation modifies if the query selects multiple documents.

Optional upsert

upsert: undefined | true | false

Upsert the document if it does not exist.

Generated using TypeDoc