update
constupdate:UpdateMethod
Defined in: packages/core/src/utils/queryTools.ts:466
Updates one or more properties of a rule or group within a query without
mutating the original query. Properties may be supplied individually
(prop, value), as parallel arrays (props, values), or as a
property-to-value map. For multi-property updates, field, operator, and
valueSource are applied before value, so an explicit value is never
reset by a change to one of those properties.
Returns
A new query with the rule or group properties updated.
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.