Skip to main content
Version: 5.9

QueryHelper

Index

Constructors

constructor

  • new QueryHelper(): QueryHelper
  • Returns QueryHelper

Properties

staticreadonlySUPPORTED_OPERATORS

SUPPORTED_OPERATORS: string[] = ...

Methods

staticfindProperty

  • findProperty<T>(fieldName: string, options: ProcessWhereOptions<T>): undefined | EntityProperty<T>
  • Type parameters

    • T

    Parameters

    • fieldName: string
    • options: ProcessWhereOptions<T>

    Returns undefined | EntityProperty<T>

staticgetActiveFilters

  • getActiveFilters(entityName: string, options: boolean | string[] | Dictionary<boolean | Dictionary>, filters: Dictionary<FilterDef>): FilterDef[]
  • Parameters

    • entityName: string
    • options: boolean | string[] | Dictionary<boolean | Dictionary>
    • filters: Dictionary<FilterDef>

    Returns FilterDef[]

staticinlinePrimaryKeyObjects

  • inlinePrimaryKeyObjects<T>(where: Dictionary, meta: EntityMetadata<T>, metadata: MetadataStorage, key?: string): boolean
  • Type parameters

    • T: object

    Parameters

    • where: Dictionary
    • meta: EntityMetadata<T>
    • metadata: MetadataStorage
    • optionalkey: string

    Returns boolean

staticisFilterActive

  • isFilterActive(entityName: string, filterName: string, filter: FilterDef, options: Dictionary<boolean | Dictionary>): boolean
  • Parameters

    • entityName: string
    • filterName: string
    • filter: FilterDef
    • options: Dictionary<boolean | Dictionary>

    Returns boolean

staticprocessCustomType

  • processCustomType<T>(prop: EntityProperty<T>, cond: FilterQuery<T>, platform: Platform, key?: string, fromQuery?: boolean): FilterQuery<T>
  • Type parameters

    • T

    Parameters

    • prop: EntityProperty<T>
    • cond: FilterQuery<T>
    • platform: Platform
    • optionalkey: string
    • optionalfromQuery: boolean

    Returns FilterQuery<T>

staticprocessObjectParams

  • processObjectParams(params?: Dictionary): any
  • Parameters

    • params: Dictionary = {}

    Returns any

staticprocessParams

  • processParams(params: any): any
  • Parameters

    • params: any

    Returns any

staticprocessWhere

  • processWhere<T>(options: ProcessWhereOptions<T>): FilterQuery<T>
  • Type parameters

    • T: object

    Parameters

    • options: ProcessWhereOptions<T>

    Returns FilterQuery<T>