Skip to main content

AddMethod()

Defined in: packages/core/src/utils/queryTools.ts:212

AddMethod<RG extends RuleGroupTypeAny>(query: RG, ruleOrGroup: RuleType<string, string, any, string, Record<string, any>> | RG, parentPathOrID: string | Path, options?: AddOptions): RG

Defined in: packages/core/src/utils/queryTools.ts:213

Type Parameters​

Type Parameter
RG extends RuleGroupTypeAny

Parameters​

ParameterTypeDescription
queryRGThe query to update.
ruleOrGroupRuleType<string, string, any, string, Record<string, any>> | RGThe rule or group to add.
parentPathOrIDstring | PathPath or ID of the group to add to.
options?AddOptionsOptions.

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.