RuleType<F, O, V, C, M>
Defined in: packages/core/src/types/ruleGroups.ts:22
The main rule type. The field, operator, and value properties
can be narrowed with generics.
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
F extends string | string |
O extends string | string |
V | any |
C extends string | string |
M | Record<string, any> |
Properties
combinatorPreceding?
optionalcombinatorPreceding?:C
Defined in: packages/core/src/types/ruleGroups.ts:39
Only used when adding a rule to a query that uses independent combinators.
disabled?
optionaldisabled?:boolean
Defined in: packages/core/src/types/ruleGroups.ts:9
Inherited from
CommonRuleAndGroupProperties.disabled
field
field:
F
Defined in: packages/core/src/types/ruleGroups.ts:31
id?
optionalid?:string
Defined in: packages/core/src/types/ruleGroups.ts:8
Inherited from
CommonRuleAndGroupProperties.id
match?
optionalmatch?:MatchConfig
Defined in: packages/core/src/types/ruleGroups.ts:35
meta?
optionalmeta?:M
Defined in: packages/core/src/types/ruleGroups.ts:46
Opaque metadata for use by extension packages. The core library
preserves this property but does not read or interpret it.
Extensions like @react-querybuilder/graph use meta to store
domain-specific context (e.g., graph pattern information).
muted?
optionalmuted?:boolean
Defined in: packages/core/src/types/ruleGroups.ts:15
Whether this rule or group is muted. When muted, the rule or group is excluded from query export formats (SQL, JSON, MongoDB, etc.). For groups, muting recursively mutes all children.
Inherited from
CommonRuleAndGroupProperties.muted
operator
operator:
O
Defined in: packages/core/src/types/ruleGroups.ts:32
path?
optionalpath?:Path
Defined in: packages/core/src/types/ruleGroups.ts:7
Inherited from
CommonRuleAndGroupProperties.path
value
value:
V
Defined in: packages/core/src/types/ruleGroups.ts:33
valueSource?
optionalvalueSource?:ValueSource
Defined in: packages/core/src/types/ruleGroups.ts:34
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.