remove()
remove<
RG
>(query
,path
):RG
Removes a rule or group from a query.
Type Parameters
Type Parameter |
---|
RG extends RuleGroupTypeAny |
Parameters
Parameter | Type | Description |
---|---|---|
query | RG | The query to update. |
path | Path | Path of the rule or group to remove. |
Returns
RG
The new query with the rule or group removed.
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:200
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.