mingo
    Preparing search index...

    Class ComputeOptions

    Custom type to facilitate type checking for global options

    Implements

    Index

    Accessors

    • get idKey(): string

      The key that is used to lookup the ID value of a document.

      Returns string

      "_id".
      
    • get scriptEnabled(): boolean

      Enable or disable custom script execution using $where, $accumulator, and $function operators.

      Returns boolean

      true.
      
    • get useGlobalContext(): boolean

      Enable or disable falling back to the global context for operators.

      Returns boolean

      true.
      
    • get useStrictMode(): boolean

      Enforces strict MongoDB compatibilty. See README.

      Returns boolean

      true.
      

    Methods

    • Updates the internal state.

      Parameters

      • Optionalroot: unknown

        The new root context for this object.

      • Optionallocal: LocalData

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

      Returns ComputeOptions