Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Or

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Rest ...queries: Query[]

    Returns Or

Properties

body

body: any

lookup_steps

lookup_steps: QueryStep[]

params

params: any

policies

policies: Policy[]

steps

steps: QueryStep[]

Static type_name

type_name: string = "or"

Methods

_getMatchExpressions

  • _getMatchExpressions(): Query[]
  • Returns Query[]

_getRestrictingQuery

_isUnwindStage

  • _isUnwindStage(stages: QueryStage[], i: number): any

addQuery

  • addQuery(query: Query): void
  • Parameters

    Returns void

check

checkAllPolicies

checkerFunction

dump

getRestrictingQuery

isItemSensitive

  • isItemSensitive(): Promise<boolean>

lookup

  • Parameters

    Returns string

match

  • match(body: {}): void
  • Parameters

    • body: {}
      • [key: string]: any

    Returns void

toPipeline

  • toPipeline(): any[]
  • Returns any[]

Static allow

  • allow(reason: string): { allowed: boolean; reason: string }
  • Parameters

    • reason: string

    Returns { allowed: boolean; reason: string }

    • allowed: boolean
    • reason: string

Static deny

  • deny(reason: string): { allowed: boolean; reason: string }
  • Parameters

    • reason: string

    Returns { allowed: boolean; reason: string }

    • allowed: boolean
    • reason: string

Static fromCustomPipeline

Static fromDefinition

Static fromSingleMatch

  • fromSingleMatch(body: any): Query

Generated using TypeDoc