Skip to main content

prepareRuleGroup()

prepareRuleGroup<RG extends RuleGroupTypeAny>(queryObject: RG, __namedParameters?: PreparerOptions): RG

Defined in: packages/core/src/utils/prepareQueryObjects.ts:45

Ensures that a rule group is valid by recursively adding an id property to the group itself and all its rules and subgroups where one does not already exist.

Type Parameters​

Type Parameter
RG extends RuleGroupTypeAny

Parameters​

ParameterType
queryObjectRG
__namedParametersPreparerOptions

Returns​

RG


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.