File

query-builder/src/query-builder.interface.ts

Description

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

Example :
import { IQueryBuilderQuery } from '@talenra/components/query-builder';

Index

Properties

Properties

condition
condition: TQueryBuilderCondition
Type : TQueryBuilderCondition

The condition used to combine the rules and queries.

hierarchyLevel
hierarchyLevel: number
Type : number

The hierarchy level of the query. Starting with 1.

identifier
identifier: string
Type : string

Random identifier for the query.

rules
rules: (IQueryBuilderQuery | IQueryBuilderRule)[]
Type : (IQueryBuilderQuery | IQueryBuilderRule)[]

The type of the value that is used to compare the items.

results matching ""

    No results matching ""