Skip to main content

InsertMethod()

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

InsertMethod<RG extends RuleGroupTypeAny>(query: RG, ruleOrGroup: RuleType<string, string, any, string, Record<string, any>> | RG, path: number[], options?: InsertOptions): RG

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

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 insert.
pathnumber[]Path at which to insert the rule or group.
options?InsertOptionsOptions.

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.