Skip to main content
Version: 4.5

Class: CriteriaNodeFactory#

knex.CriteriaNodeFactory

Constructors#

constructor#

+ new CriteriaNodeFactory(): CriteriaNodeFactory

Returns: CriteriaNodeFactory

Methods#

createArrayNode#

StaticcreateArrayNode(metadata: MetadataStorage, entityName: string, payload: any[], parent?: ICriteriaNode, key?: string): ICriteriaNode

Parameters:#

NameType
metadataMetadataStorage
entityNamestring
payloadany[]
parent?ICriteriaNode
key?string

Returns: ICriteriaNode

Defined in: packages/knex/src/query/CriteriaNodeFactory.ts:32


createNode#

StaticcreateNode(metadata: MetadataStorage, entityName: string, payload: any, parent?: ICriteriaNode, key?: string): ICriteriaNode

Parameters:#

NameType
metadataMetadataStorage
entityNamestring
payloadany
parent?ICriteriaNode
key?string

Returns: ICriteriaNode

Defined in: packages/knex/src/query/CriteriaNodeFactory.ts:10


createObjectItemNode#

StaticcreateObjectItemNode(metadata: MetadataStorage, entityName: string, node: ICriteriaNode, payload: Dictionary<any>, item: string, meta?: EntityMetadata<any>): ICriteriaNode

Parameters:#

NameType
metadataMetadataStorage
entityNamestring
nodeICriteriaNode
payloadDictionary<any>
itemstring
meta?EntityMetadata<any>

Returns: ICriteriaNode

Defined in: packages/knex/src/query/CriteriaNodeFactory.ts:55


createObjectNode#

StaticcreateObjectNode(metadata: MetadataStorage, entityName: string, payload: Dictionary<any>, parent?: ICriteriaNode, key?: string): ICriteriaNode

Parameters:#

NameType
metadataMetadataStorage
entityNamestring
payloadDictionary<any>
parent?ICriteriaNode
key?string

Returns: ICriteriaNode

Defined in: packages/knex/src/query/CriteriaNodeFactory.ts:39


createScalarNode#

StaticcreateScalarNode(metadata: MetadataStorage, entityName: string, payload: any, parent?: ICriteriaNode, key?: string): ICriteriaNode

Parameters:#

NameType
metadataMetadataStorage
entityNamestring
payloadany
parent?ICriteriaNode
key?string

Returns: ICriteriaNode

Defined in: packages/knex/src/query/CriteriaNodeFactory.ts:25

Last updated on by Martin Adámek