Skip to main content

parseJSONata()

Call Signature

parseJSONata(jsonataInput: string): DefaultRuleGroupType

Converts a JSONata string expression into a query suitable for the QueryBuilder component's query or defaultQuery props (DefaultRuleGroupType).

Parameters

ParameterType
jsonataInputstring

Returns

DefaultRuleGroupType

Defined in

packages/react-querybuilder/src/utils/parseJSONata/parseJSONata.ts:44

Call Signature

parseJSONata(jsonataInput: string, options: { fields: OptionList<FullField<string, string, string, Option<string>, Option<string>>> | Record<string, FullField<string, string, string, Option<string>, Option<string>>>; getValueSources: (field: string, operator: string) => ValueSources; listsAsArrays: boolean; } & { independentCombinators: false; }): DefaultRuleGroupType

Converts a JSONata string expression into a query suitable for the QueryBuilder component's query or defaultQuery props (DefaultRuleGroupType).

Parameters

ParameterType
jsonataInputstring
options{ fields: OptionList<FullField<string, string, string, Option<string>, Option<string>>> | Record<string, FullField<string, string, string, Option<string>, Option<string>>>; getValueSources: (field: string, operator: string) => ValueSources; listsAsArrays: boolean; } & { independentCombinators: false; }

Returns

DefaultRuleGroupType

Defined in

packages/react-querybuilder/src/utils/parseJSONata/parseJSONata.ts:50

Call Signature

parseJSONata(jsonataInput: string, options: { fields: OptionList<FullField<string, string, string, Option<string>, Option<string>>> | Record<string, FullField<string, string, string, Option<string>, Option<string>>>; getValueSources: (field: string, operator: string) => ValueSources; listsAsArrays: boolean; } & { independentCombinators: true; }): DefaultRuleGroupTypeIC

Converts a JSONata string expression into a query suitable for the QueryBuilder component's query or defaultQuery props (DefaultRuleGroupTypeIC).

Parameters

ParameterType
jsonataInputstring
options{ fields: OptionList<FullField<string, string, string, Option<string>, Option<string>>> | Record<string, FullField<string, string, string, Option<string>, Option<string>>>; getValueSources: (field: string, operator: string) => ValueSources; listsAsArrays: boolean; } & { independentCombinators: true; }

Returns

DefaultRuleGroupTypeIC

Defined in

packages/react-querybuilder/src/utils/parseJSONata/parseJSONata.ts:61


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.