query-builder/src/query-builder.interface.ts
Query of conditions and rules. The query can contain multiple rules and queries.
Example :{
condition: 'and',
identifier: '1',
hierarchyLevel: 1,
rules: [
{
identifier: '2',
operator: 'equal',
key: 'name',
label: 'Name',
type: 'string',
value: 'John Doe'
},
{
condition: 'or',
identifier: '3',
hierarchyLevel: 2,
rules: [
{
identifier: '4',
operator: 'equal',
key: 'age',
label: 'Age',
type: 'number',
value: 30
}
]
}
]
}import { IQueryBuilderQuery } from '@talenra/components/query-builder';
Properties |
| condition |
condition:
|
Type : TQueryBuilderCondition
|
|
The condition used to combine the rules and queries. |
| hierarchyLevel |
hierarchyLevel:
|
Type : number
|
|
The hierarchy level of the query. Starting with 1. |
| identifier |
identifier:
|
Type : string
|
|
Random identifier for the query. |
| rules |
rules:
|
Type : (IQueryBuilderQuery | IQueryBuilderRule)[]
|
|
The type of the value that is used to compare the items. |