Class ComputeOptions

Custom type to facilitate type checking for global options

Implements

Constructors

  • Parameters

    • _opts: Options
    • _root: unknown

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

    • Optional _local: LocalData
    • timestamp: number = ...

      The current time in milliseconds. Remains the same throughout all stages of the aggregation pipeline.

    Returns ComputeOptions

Properties

_local?: LocalData
_opts: Options
_root: unknown

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

timestamp: number = ...

The current time in milliseconds. Remains the same throughout all stages of the aggregation pipeline.

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