Skip to main content
Version: 4.4

Class: QueryHelper#

core.QueryHelper

Hierarchy#

  • QueryHelper

Constructors#

constructor#

+ new QueryHelper(): QueryHelper

Returns: QueryHelper

Properties#

SUPPORTED_OPERATORS#

Readonly Static SUPPORTED_OPERATORS: string[]

Defined in: packages/core/src/utils/QueryHelper.ts:10

Methods#

getActiveFilters#

StaticgetActiveFilters(entityName: string, options: boolean | string[] | Dictionary<boolean | Dictionary<any>>, filters: Dictionary<FilterDef<any>>): FilterDef<any>[]

Parameters:#

NameType
entityNamestring
optionsboolean | string[] | Dictionary<boolean | Dictionary<any>>
filtersDictionary<FilterDef<any>>

Returns: FilterDef<any>[]

Defined in: packages/core/src/utils/QueryHelper.ts:160


inlinePrimaryKeyObjects#

StaticinlinePrimaryKeyObjects<T>(where: Dictionary<any>, meta: EntityMetadata<T>, metadata: MetadataStorage, key?: string): boolean

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
whereDictionary<any>
metaEntityMetadata<T>
metadataMetadataStorage
key?string

Returns: boolean

Defined in: packages/core/src/utils/QueryHelper.ts:44


isFilterActive#

StaticisFilterActive(entityName: string, filterName: string, filter: FilterDef<any>, options: Dictionary<boolean | Dictionary<any>>): boolean

Parameters:#

NameType
entityNamestring
filterNamestring
filterFilterDef<any>
optionsDictionary<boolean | Dictionary<any>>

Returns: boolean

Defined in: packages/core/src/utils/QueryHelper.ts:181


isSupportedOperator#

Private StaticisSupportedOperator(key: string): boolean

Parameters:#

NameType
keystring

Returns: boolean

Defined in: packages/core/src/utils/QueryHelper.ts:235


processCustomType#

StaticprocessCustomType<T>(prop: EntityProperty<T>, cond: FilterQuery<T>, platform: Platform, key?: string, fromQuery?: boolean): FilterQuery<T>

Type parameters:#

Name
T

Parameters:#

NameType
propEntityProperty<T>
condFilterQuery<T>
platformPlatform
key?string
fromQuery?boolean

Returns: FilterQuery<T>

Defined in: packages/core/src/utils/QueryHelper.ts:193


processEntity#

Private StaticprocessEntity(entity: AnyEntity<any>, root?: boolean): any

Parameters:#

NameType
entityAnyEntity<any>
root?boolean

Returns: any

Defined in: packages/core/src/utils/QueryHelper.ts:213


processExpression#

Private StaticprocessExpression<T>(expr: string, value: T): Dictionary<T>

Type parameters:#

Name
T

Parameters:#

NameType
exprstring
valueT

Returns: Dictionary<T>

Defined in: packages/core/src/utils/QueryHelper.ts:223


processObjectParams#

StaticprocessObjectParams(params?: Dictionary<any>): any

Parameters:#

NameTypeDefault value
paramsDictionary<any>...

Returns: any

Defined in: packages/core/src/utils/QueryHelper.ts:36


processParams#

StaticprocessParams(params: any, root?: boolean): any

Parameters:#

NameType
paramsany
root?boolean

Returns: any

Defined in: packages/core/src/utils/QueryHelper.ts:12


processWhere#

StaticprocessWhere<T>(where: FilterQuery<T>, entityName: string, metadata: MetadataStorage, platform: Platform, convertCustomTypes?: boolean, root?: boolean): FilterQuery<T>

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameTypeDefault value
whereFilterQuery<T>-
entityNamestring-
metadataMetadataStorage-
platformPlatform-
convertCustomTypesbooleantrue
rootbooleantrue

Returns: FilterQuery<T>

Defined in: packages/core/src/utils/QueryHelper.ts:72

Last updated on by renovate[bot]