Skip to main content

group

const group: GroupMethod

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

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

Returns

A new query 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.