Options
All
  • Public
  • Public/Protected
  • All
Menu

Class And

Hierarchy

Index

Constructors

constructor

Properties

aggregation_steps

aggregation_steps: {}

Type declaration

body

body: any

graph

graph: Graph

params

params: any

policies

policies: Policy[]

received_deny_all

received_deny_all: boolean

steps

steps: QueryStep[]

Static type_name

type_name: string = "and"

Methods

_addDependenciesInGraph

  • _addDependenciesInGraph(id: string, step: QueryStep): void
  • Parameters

    Returns void

_addToAggregationSteps

  • _addToAggregationSteps(id: string, step: QueryStep): void
  • Parameters

    Returns void

_getRestrictingQuery

  • _getRestrictingQuery(context: Context): Promise<And>

_isInGraph

  • _isInGraph(key: string): boolean
  • Parameters

    • key: string

    Returns boolean

_isNotDependencyForAnyInGroup

  • _isNotDependencyForAnyInGroup(id: string, nodeGroup: string[]): boolean
  • Parameters

    • id: string
    • nodeGroup: string[]

    Returns boolean

_isUnwindStage

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

_reset

  • _reset(): void
  • Returns void

addQuery

  • addQuery(query: Query): void
  • Parameters

    Returns void

check

checkAllPolicies

checkerFunction

dump

getRestrictingQuery

isItemSensitive

  • isItemSensitive(): Bluebird<unknown>

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