Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FindOneAndReplaceOption

Hierarchy

  • FindOneAndReplaceOption

Index

Properties

Optional maxTimeMS

maxTimeMS: 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: boolean

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: boolean

Upsert the document if it does not exist.

Generated using TypeDoc