Class ComputeOptions

Custom type to facilitate type checking for global options

Implements

Constructors

Properties

#local: LocalData
#options: Options
#root: unknown

Reference to the root object when processing subgraphs of the object.

Accessors

  • get idKey(): string
  • The key that is used to lookup the ID value of a document.

    Returns string

    Default

    "_id".
    
  • get scriptEnabled(): boolean
  • Enable or disable custom script execution via $where, $accumulator, and $function operators.

    Returns boolean

    Default

    true.
    
  • get useGlobalContext(): boolean
  • Enable or disable falling back to the global context for operators.

    Returns boolean

    Default

    true.
    
  • get useStrictMode(): boolean
  • Enforces strict MongoDB compatibilty. See README.

    Returns boolean

    Default

    true.
    

Methods

  • Updates the internal state.

    Parameters

    • Optional root: unknown

      The new root context for this object.

    • Optional local: LocalData

      The new local state to merge into current if it exists.

    Returns ComputeOptions