Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WhereQuery

Hierarchy

  • WhereQuery

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new WhereQuery(parent: Query, key: string, logicalOperator?: string): WhereQuery
  • new WhereQuery(parent: Query, key: string, logicalOperator?: string): WhereQuery
  • Parameters

    • parent: Query
    • key: string
    • Default value logicalOperator: string = "$and"

    Returns WhereQuery

  • Parameters

    • parent: Query
    • key: string
    • Optional logicalOperator: string

    Returns WhereQuery

Properties

key

key: any

logicalOperator

logicalOperator: string

parent

parent: any

Accessors

is

  • get is(): this

Methods

eq

  • eq(value: boolean | number | string): any
  • eq(value: boolean | number | string): any
  • Parameters

    • value: boolean | number | string

    Returns any

  • Parameters

    • value: boolean | number | string

    Returns any

exists

  • exists(value?: boolean): any
  • exists(value?: boolean): any
  • Parameters

    • Default value value: boolean = true

    Returns any

  • Parameters

    • Optional value: boolean

    Returns any

gt

  • gt(value: number): any
  • gt(value: number): any
  • Parameters

    • value: number

    Returns any

  • Parameters

    • value: number

    Returns any

gte

  • gte(value: number): any
  • gte(value: number): any
  • Parameters

    • value: number

    Returns any

  • Parameters

    • value: number

    Returns any

in

  • in(value: (string | number | false | true)[] | boolean | string | number): any
  • in(value: (string | number | false | true)[] | boolean | string | number): any
  • Parameters

    • value: (string | number | false | true)[] | boolean | string | number

    Returns any

  • Parameters

    • value: (string | number | false | true)[] | boolean | string | number

    Returns any

lt

  • lt(value: number): any
  • lt(value: number): any
  • Parameters

    • value: number

    Returns any

  • Parameters

    • value: number

    Returns any

lte

  • lte(value: number): any
  • lte(value: number): any
  • Parameters

    • value: number

    Returns any

  • Parameters

    • value: number

    Returns any

ne

  • ne(value: boolean | number | string): any
  • ne(value: boolean | number | string): any
  • Parameters

    • value: boolean | number | string

    Returns any

  • Parameters

    • value: boolean | number | string

    Returns any

nin

  • nin(value: (string | number | false | true)[]): any
  • nin(value: (string | number | false | true)[]): any
  • Parameters

    • value: (string | number | false | true)[]

    Returns any

  • Parameters

    • value: (string | number | false | true)[]

    Returns any