Skip to main content

groupInPlace

const groupInPlace: GroupMethod

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

Creates a new group at a target path with its rules array containing the current objects at the target path and the source path in place. In the options parameter, pass { clone: true } to copy the source rule/group instead of move.

Returns

The query (mutated in place) with the rules or groups grouped.


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.