Skip to main content

@react-querybuilder/core

Props

NameDescription
BaseTranslationA translation for a component with title only.
BaseTranslationsThe shape of the translations prop.
BaseTranslationWithLabelA translation for a component with title and label.
BaseTranslationWithPlaceholdersA translation for a component with title and a placeholder.
ClassnamesClassnames applied to each component.
CommonRuleSubComponentPropsBase interface for all rule subcomponents.
PlaceholderPlaceholder strings for option lists.
QueryActionsFunctions included in the actions prop passed to every subcomponent.
BaseTranslationsFullThe full translations interface with all properties required.

Export

NameDescription
FormatQueryFinalOptionsOptions object curated by formatQuery and passed to a RuleGroupProcessor.
FormatQueryOptionsOptions object shape for formatQuery.
ParameterizedNamedSQLObject produced by formatQuery for the "parameterized_named" format.
ParameterizedSQLObject produced by formatQuery for the "parameterized" format.
RQBJsonLogicEndsWith-
RQBJsonLogicStartsWith-
RQBJsonLogicVar-
ValueProcessorOptionsOptions object for ValueProcessorByRule functions.
ConstituentWordOrderConstituent word order (as array) for the "natural_language" format.
ConstituentWordOrderStringConstituent word order (as string) for the "natural_language" format.
ExportFormatAvailable export formats for formatQuery.
ExportObjectFormatsExport formats for formatQuery that produce objects instead of strings.
ExportOperatorMapA map of operators to strings to be used in the output of formatQuery. If the result can differ based on the valueSource, the key should map to an array where the second element represents the string to be used when valueSource is "field". The first element will be used in all other cases.
FormatQueryValidateRuleRule validator for formatQuery.
GroupVariantConditionRule group condition identifier for the "natural_language" format.
NLTranslationKeyKeys for the translations config object used by the "natural_language" format.
NLTranslationstranslations config object for "natural_language" format.
RQBJsonLogicJsonLogic rule object with additional operators generated by formatQuery and accepted by parseJsonLogic!parseJsonLogic.
RuleGroupProcessorFunction to produce a result that formatQuery uses when processing a RuleGroupType or RuleGroupTypeIC object.
RuleProcessorFunction to produce a result that formatQuery uses when processing a RuleType object.
SQLPresetAvailable presets for the "sql" export format.
ValueProcessor-
ValueProcessorByRuleFunction that produces a processed value for a given RuleType.
ValueProcessorLegacyFunction that produces a processed value for a given field, operator, value, and valueSource.
celCombinatorMapMaps a DefaultCombinatorName to a CEL combinator.
defaultCELValueProcessor-
defaultExportOperatorMapDefault operator map used by formatQuery for "natural_language" format.
defaultMongoDBValueProcessor-
defaultNLTranslationsDefault translations used by formatQuery for "natural_language" format.
defaultOperatorProcessorNLDefault operator processor used by formatQuery for "natural_language" format.
defaultOperatorProcessorSQLDefault operator processor used by formatQuery for "sql" and "parameterized*" formats.
defaultRuleGroupProcessorCELRule group processor used by formatQuery for "cel" format.
defaultRuleGroupProcessorDrizzleDefault rule group processor used by formatQuery for the "drizzle" format. The returned function can be assigned to the where property in the Drizzle relational queries API.
defaultRuleGroupProcessorElasticSearchRule group processor used by formatQuery for "elasticsearch" format.
defaultRuleGroupProcessorJSONataRule group processor used by formatQuery for "jsonata" format.
defaultRuleGroupProcessorJsonLogicRule group processor used by formatQuery for "jsonlogic" format.
defaultRuleGroupProcessorLDAPRule group processor used by formatQuery for "ldap" format.
defaultRuleGroupProcessorMongoDBRule group processor used by formatQuery for "mongodb" format.
defaultRuleGroupProcessorMongoDBQueryRule group processor used by formatQuery for "mongodb_query" format.
defaultRuleGroupProcessorNLRule group processor used by formatQuery for "natural_language" format.
defaultRuleGroupProcessorParameterizedRule group processor used by formatQuery for "parameterized" and "parameterized_named" formats.
defaultRuleGroupProcessorPrismaRule group processor used by formatQuery for "prisma" format.
defaultRuleGroupProcessorSequelizeRule group processor used by formatQuery for "sequelize" format.
defaultRuleGroupProcessorSpELDefault rule processor used by formatQuery for "spel" format.
defaultRuleGroupProcessorSQLDefault rule processor used by formatQuery for "sql" format.
defaultRuleProcessorCELDefault rule processor used by formatQuery for "cel" format.
defaultRuleProcessorDrizzleDefault rule processor used by formatQuery for the "drizzle" format.
defaultRuleProcessorElasticSearchDefault rule processor used by formatQuery for "elasticsearch" format.
defaultRuleProcessorJSONataDefault rule processor used by formatQuery for "jsonata" format.
defaultRuleProcessorJsonLogicDefault rule processor used by formatQuery for "jsonlogic" format.
defaultRuleProcessorLDAPDefault rule processor used by formatQuery for "ldap" format.
defaultRuleProcessorMongoDBDefault rule processor used by formatQuery for "mongodb" format.
defaultRuleProcessorMongoDBQueryDefault rule processor used by formatQuery for "mongodb_query" format.
defaultRuleProcessorNLDefault rule processor used by formatQuery for "natural_language" format.
defaultRuleProcessorParameterizedDefault rule processor used by formatQuery for "parameterized" and "parameterized_named" formats.
defaultRuleProcessorPrismaDefault rule processor used by formatQuery for "prisma" format.
defaultRuleProcessorSequelizeDefault rule processor used by formatQuery for the "sequelize" format.
defaultRuleProcessorSpELDefault rule processor used by formatQuery for "spel" format.
defaultRuleProcessorSQLDefault rule processor used by formatQuery for "sql" format.
defaultSpELValueProcessor-
defaultValueProcessorDefault value processor used by formatQuery for "sql" format.
defaultValueProcessorByRuleDefault value processor used by formatQuery for "sql" format.
defaultValueProcessorCELByRule-
defaultValueProcessorMongoDBByRule-
defaultValueProcessorNLDefault value processor used by formatQuery for "natural_language" format.
defaultValueProcessorSpELByRule-
formatQueryOptionPresetsA collection of option presets for formatQuery.
jsonLogicAdditionalOperatorsRegister these operators with jsonLogic before applying the result of formatQuery(query, 'jsonlogic').
mongoDbFallbackDefault fallback object used by formatQuery for "mongodb_query" format.
mongoOperatorsMaps a (lowercase) DefaultOperatorName to a MongoDB operator.
prismaFallbackDefault fallback object used by formatQuery for "prisma" format.
prismaOperatorsMaps a (lowercase) DefaultOperatorName to a Prisma ORM operator.
sqlDialectPresetsA collection of option presets for formatQuery, specifically for SQL-based formats.
formatQueryGenerates a formatted (indented two spaces) JSON string from a query object.
getNLTranslataionUsed by formatQuery to get a translation based on certain conditions for the "natural_language" format.
getQuotedFieldNameGiven a field name and relevant ValueProcessorOptions, returns the field name wrapped in the configured quote character(s).
getQuoteFieldNamesWithArrayConverts the quoteFieldNamesWith option into an array of two strings. If the option is a string, the array elements are both that string.
isValidValueDetermines whether a value is anything except an empty string or NaN.
isValueProcessorLegacyUsed by formatQuery to determine whether the given value processor is a "legacy" value processor by counting the number of arguments. Legacy value processors take 3 arguments (not counting any arguments with default values), while rule-based value processors take no more than 2 arguments.
mapSQLOperatorMaps a DefaultOperatorName to a SQL operator.
normalizeConstituentWordOrderGiven a Constituent word order like "svo" or "sov", returns a permutation of ["S", "V", "O"] based on the first occurrence of each letter in the input string (case insensitive). This widens the valid input from abbreviations like "svo" to more expressive strings like "subject-verb-object" or "sub ver obj". Any missing letters are appended in the default order "SVO" (e.g., "object" would yield ["O", "S", "V"]).
numerifyValuesConverts all string-type value properties of a query object into number where appropriate.
shouldRenderAsNumberDetermines whether formatQuery should render the given value as a number. As long as parseNumbers is true, number and bigint values will return true and string values will return true if they test positive against numericRegex.

Defaults

VariableDescription
defaultCombinatorsDefault combinator list.
defaultCombinatorsExtendedDefault combinator list, with XOR added.
defaultControlClassnamesDefault classnames for each component.
defaultJoinCharDefault character used to .join and .split arrays.
defaultMatchModesDefault match modes.
defaultOperatorNegationMapMap of default operators to their respective opposite/negating operators.
defaultOperatorsDefault operator list.
defaultPlaceholderFieldGroupLabelDefault label for placeholder option group in the fields array.
defaultPlaceholderFieldLabelDefault label for placeholder option in the fields array.
defaultPlaceholderFieldNameDefault name for placeholder option in the fields array.
defaultPlaceholderLabel-
defaultPlaceholderName-
defaultPlaceholderOperatorGroupLabelDefault label for placeholder option group in the operators array.
defaultPlaceholderOperatorLabelDefault label for placeholder option in the operators array.
defaultPlaceholderOperatorNameDefault name for placeholder option in the operators array.
defaultPlaceholderValueGroupLabelDefault label for placeholder option group in the values array.
defaultPlaceholderValueLabelDefault label for placeholder option in the values array.
defaultPlaceholderValueNameDefault name for placeholder option in the values array.
defaultTranslationsDefault configuration of translatable strings.
groupInvalidReasonsDefault reason codes for a group being invalid.
rootPathThe Path of the root group.
standardClassnamesStandard classnames applied to each component.
TestIDComponent identifiers for testing.

Option Lists

NameDescription
BaseOptionDo not use this type directly; use Option, ValueOption, or FullOption instead. For specific option types, you can use FullField, FullOperator, or FullCombinator, all of which extend FullOption.
FullOperatorFull operator definition used in the operators/getOperators props of QueryBuilder. This type requires both name and value, but the operators/getOperators props themselves can use a FlexibleOption where only one of name or value is required, or FullOperator where only name is required.
OptionGroupA group of Options, usually within an OptionList.
BaseFullOptionThis type is identical to FullOption but without the unknown index property. Extend from this type instead of FullOption directly.
BaseOptionMapMap of option identifiers to their respective Option.
CombinatorCombinator definition used in the combinators prop of QueryBuilder. This type is an extension of FullCombinator where only name and label are required.
CombinatorByValueCombinator definition used in the combinators prop of QueryBuilder. This type is an extension of FullCombinator where only value and label are required.
DefaultCombinatorA FullCombinator definition with a DefaultCombinatorName name property.
DefaultCombinatorExtendedA FullCombinator definition with a DefaultCombinatorNameExtended name property.
DefaultCombinatorNameDefault allowed values for the combinator property.
DefaultCombinatorNameExtendedDefault allowed values for the combinator property, plus "xor".
DefaultOperatorAn FullOperator definition with a DefaultOperatorName name property.
DefaultOperatorNameDefault values for the operator property.
FieldField definition used in the fields prop of QueryBuilder. This type is an extension of FullField where only name and label are required.
FieldByValueField definition used in the fields prop of QueryBuilder. This type is an extension of FullField where only value and label are required.
FlexibleOptionA generic Option with either a name or value as its primary identifier. OptionList-type props on the QueryBuilder component accept this type, but corresponding props passed down to subcomponents will always be translated to FullOption first.
FlexibleOptionGroupA group of BaseOptions, usually within a FlexibleOptionList.
FlexibleOptionListAn array of options or option groups, like OptionList but the option type may use either name or value as the primary identifier.
FlexibleOptionListPropAn array of options or option groups, like OptionList but the option type may use either name or value as the primary identifier.
FullCombinatorFull combinator definition used in the combinators prop of QueryBuilder. This type requires both name and value, but the combinators prop itself can use a FlexibleOption where only one of name or value is required, or Combinator where only name is required.
FullFieldFull field definition used in the fields prop of QueryBuilder. This type requires both name and value, but the fields prop itself can use a FlexibleOption where only one of name or value is required (along with label), or Field where only name and label are required.
FullOptionA generic Option requiring both name and value properties. Props that extend OptionList accept BaseOption, but corresponding props sent to subcomponents will always be translated to this type first to ensure both name and value are available.
FullOptionListAn array of options or option groups, like OptionList, but using FullOption instead of Option. This means that every member is guaranteed to have both name and value.
FullOptionMapMap of option identifiers to their respective FullOption.
FullOptionRecordMap of option identifiers to their respective FullOption. Must include all possible strings from the identifier type.
GetOptionIdentifierTypeExtracts the type of the identifying property from a Option, ValueOption, or FullOption.
GetOptionTypeExtracts the Option type from a FlexibleOptionList.
NameLabelPair-
OperatorOperator definition used in the operators/getOperators props of QueryBuilder. This type is an extension of FullOperator where only name and label are required.
OperatorByValueOperator definition used in the operators/getOperators props of QueryBuilder. This type is an extension of FullOperator where only value and label are required.
OptionA generic option. Used directly in OptionList or as the child element of an OptionGroup.
OptionListEither an array of Options or an array of OptionGroups.
ToFlexibleOptionUtility type to turn an Option, ValueOption, or BaseOption into a FlexibleOption.
ToFullOptionUtility type to turn an Option, ValueOption or BaseOption into a FullOption.
ValueOptionLike Option but requiring value instead of name.
filterFieldsByComparatorFor a given FullField, returns the fields list filtered for other fields that match by comparator. Only fields other than the one in question will ever be included, even if comparator is null or undefined. If comparator is a string, fields with the same value for that property will be included. If comparator is a function, each field will be passed to the function along with the operator and fields for which the function returns true will be included.
getFirstOptionGets the first option from an OptionList.
getOptionGets the option from an OptionList with the given name. Handles Option arrays as well as OptionGroup arrays.
isFlexibleOptionArrayDetermines if an array is a flat array of FlexibleOption.
isFlexibleOptionGroupArrayDetermines if a FlexibleOptionList is a FlexibleOptionGroup array.
isFullOptionArrayDetermines if an array is a flat array of FullOption.
isFullOptionGroupArrayDetermines if a FlexibleOptionList is a OptionGroup array of FullOption.
isOptionGroupArrayDetermines if an OptionList is an OptionGroup array.
toFlatOptionArrayFlattens FlexibleOptionGroup arrays into BaseOption arrays. If the array is already flat, it is returned as is.
toFullOptionConverts an Option or ValueOption (i.e., BaseOption) into a FullOption. Full options are left unchanged.
toFullOptionListConverts an OptionList or FlexibleOptionList into a FullOptionList. Lists of full options are left unchanged.
toFullOptionMapConverts a FlexibleOptionList into a FullOptionList. Lists of full options are left unchanged.
uniqByIdentifierGenerates a new array of objects with duplicates removed based on the identifying property (value or name)
uniqByName-
uniqOptGroupsGenerates a new OptionGroup array with duplicates removed based on the identifying property (value or name).
uniqOptListGenerates a new Option or OptionGroup array with duplicates removed based on the identifier property (value or name).

Query Tools

NameDescription
AddOptionsOptions for add.
GroupOptionsOptions for group.
InsertOptionsOptions for insert.
MoveOptionsOptions for move.
UpdateOptionsOptions for update.
addAdds a rule or group to a query.
convertFromICConverts a RuleGroupTypeIC to RuleGroupType.
convertQueryConverts a RuleGroupType to RuleGroupTypeIC. For a more explicit operation, use convertToIC.
convertToICConverts a RuleGroupType to RuleGroupTypeIC.
groupCreates a new group at a target path with its rules array containing the current objects at the target path and the source path. In the options parameter, pass { clone: true } to copy the source rule/group instead of move.
insertInserts a rule or group into a query.
moveMoves a rule or group from one path to another. In the options parameter, pass { clone: true } to copy instead of move.
removeRemoves a rule or group from a query.
updateUpdates a property of a rule or group within a query.

Functions

FunctionDescription
bigIntJsonParseReviver"Reviver" method for JSON.parse's second argument. Converts objects having a single $bigint: string property to an actual bigint value.
bigIntJsonStringifyReplacer"Replacer" method for JSON.stringify's second argument. Converts bigint values to objects with a $bigint property having a value of a string representation of the actual bigint-type value.
clsxVendored/adapted version of the clsx package.
findIDReturns the RuleType or RuleGroupType/RuleGroupTypeIC with the given id within a query.
findPathReturns the RuleType or RuleGroupType/RuleGroupTypeIC at the given path within a query.
generateIDDefault id generator. Generates a valid v4 UUID. Uses crypto.randomUUID() when available, otherwise uses an alternate method based on getRandomValues. The returned string is guaranteed to match this regex: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i
getCommonAncestorPathFinds the deepest/longest path that two paths have in common.
getMatchModesUtilUtility function to get the match modes array for the given field. If the field definition does not define a matchModes property, the getMatchModes prop is used. Returns FullOption<MatchMode>[] of all match modes by default.
getParentPathTruncates the last element of an array and returns the result as a new array.
getParseNumberMethod-
getPathOfIDReturns the Path of the RuleType or RuleGroupType/RuleGroupTypeIC with the given id within a query.
getValidationClassNamesGets the standard classname for valid or invalid components based on the given validation result.
getValueSourcesUtilUtility function to get the value sources array for the given field and operator. If the field definition does not define a valueSources property, the getValueSources prop is used. Returns [FullOption<"value">] by default.
isAncestorDetermines if the first path is an ancestor of the second path. The first path must be shorter and exactly match the second path up through the length of the first path.
isPojoDetermines if a variable is a plain old JavaScript object, aka POJO.
isRuleGroupDetermines if an object is a RuleGroupType or RuleGroupTypeIC.
isRuleGroupTypeDetermines if an object is a RuleGroupType.
isRuleGroupTypeICDetermines if an object is a RuleGroupTypeIC.
isRuleOrGroupValidDetermines if a rule or group is valid based on a validation result (if defined) or a validator function. Returns true if neither are defined.
isRuleTypeDetermines if an object is a RuleType (only checks for a field property).
isValidationResultDetermines if an object is useful as a validation result.
joinWithJoins an array of strings using the given character (see defaultJoinChar). When the given character appears in an array element, a backslash will be added just before it to distinguish it from the join character. Effectively the inverse of splitBy.
lcConverts a value to lowercase if it's a string, otherwise returns the value as is.
mergeAnyTranslation-
mergeAnyTranslationsMerges any number of partial translations into a single definition.
mergeClassnamesMerges a list of partial Classnames definitions into a single definition.
nullFreeArrayDetermines if an array is free of null/undefined.
nullOrUndefinedOrEmptySimple helper to determine whether a value is null, undefined, or an empty string.
parseNumberConverts a string to a number. Uses native parseFloat if parseNumbers is "native", otherwise uses numeric-quantity. If that returns NaN, the string is returned unchanged. Numeric values are returned as-is regardless of the parseNumbers option.
pathIsDisabledDetermines if the rule or group at the specified path is either disabled itself or disabled by an ancestor group.
pathsAreEqualDetermines if two paths (each Path) are equivalent.
prepareOptionList-
prepareRuleEnsures that a rule is valid by adding an id property if it does not already exist.
prepareRuleGroupEnsures that a rule group is valid by recursively adding an id property to the group itself and all its rules and subgroups where one does not already exist.
prepareRuleOrGroupEnsures that a rule or group is valid. See prepareRule and prepareRuleGroup.
processMatchMode-
regenerateIDGenerates a new id property for a rule.
regenerateIDsRecursively generates new id properties for a rule group and all its rules and subgroups.
splitBySplits a string by a given character (see defaultJoinChar). Escaped characters (characters preceded by a backslash) will not apply to the split, and the backslash will be removed in the array element. Inverse of joinWith.
toArraySplits a string by comma then trims each element. Arrays are returned as is except any string elements are trimmed.
transformQueryRecursively process a query heirarchy using this versatile utility function.
trimIfStringTrims the value if it is a string. Otherwise returns the value as is.

Interfaces

InterfaceDescription
CommonRuleAndGroupPropertiesProperties common to both rules and groups.
DefaultRuleGroupTypeICRuleGroupTypeIC with combinators limited to DefaultCombinatorName and rules limited to DefaultRuleType.
DragCollection-
DropCollection-
DropResult-
MatchConfigQuantification mode describing how many elements of the value array must pass the filter for the rule itself to pass.
ParseNumberOptionsOptions object for parseNumber.
PreparedOptionList-
PrepareOptionListParams-
PreparerOptionsOptions for prepareRule/prepareRuleGroup.
RegenerateIdOptionsOptions object for regenerateID/regenerateIDs.
RuleGroupTypeThe main rule group type. This type is used for query definitions as well as all sub-groups of queries.
RuleGroupTypeICThe main rule group interface when using independent combinators. This type is used for query definitions as well as all sub-groups of queries.
RuleTypeThe main rule type. The field, operator, and value properties can be narrowed with generics.
TransformQueryOptionsOptions object for index!transformQuery transformQuery.
ValidationResultObject with a valid boolean value and optional reasons.

Type Aliases

Type AliasDescription
AccessibleDescriptionGeneratorSignature of accessibleDescriptionGenerator prop, used by QueryBuilder to generate accessible descriptions for each RuleGroup.
ActionElementEventHandler-
ArityAllowed values of the FullOperator property arity. A value of "unary" or a number less than two will cause the default ValueEditor to render null.
ClassnameString of classnames, array of classname strings, or object where the keys are classnames and those with truthy values will be included. Suitable for passing to the clsx package.
DefaultCombinators-
DefaultCombinatorsExtended-
DefaultMatchModes-
DefaultOperators-
DefaultRuleGroupArrayThe type of the rules array in a DefaultRuleGroupType.
DefaultRuleGroupICArrayThe type of the rules array in a DefaultRuleGroupTypeIC.
DefaultRuleGroupTypeRuleGroupType with the combinator property limited to DefaultCombinatorNameExtended and rules limited to DefaultRuleType.
DefaultRuleGroupTypeAnyShorthand for "either DefaultRuleGroupType or DefaultRuleGroupTypeIC".
DefaultRuleOrGroupArrayShorthand for "either DefaultRuleGroupArray or DefaultRuleGroupICArray".
DefaultRuleTypeRuleType with the operator property limited to DefaultOperatorName.
DndDropTargetType-
DraggedItem-
DropEffect-
FindPathReturnTypeReturn type for findPath.
GenericizeRuleGroupTypeConverts a narrowed rule group type to its most generic form.
GetRuleGroupTypeDetermines if a type extending RuleGroupTypeAny is actually RuleGroupType or RuleGroupTypeIC.
GetRuleTypeFromGroupWithFieldAndOperatorDetermines the RuleType of a given RuleGroupType or RuleGroupTypeIC. If the field and operator name types of the rule type extend the identifier types of the provided Field and Operator types, the given rule type is returned as is. Otherwise, the rule type has its field and operator types narrowed to the identifier types of the provided Field and Operator types.
InputTypeHTML5 input types
JsonLogicAll-
JsonLogicAnd-
JsonLogicDoubleNegation-
JsonLogicEqual-
JsonLogicGreaterThan-
JsonLogicGreaterThanOrEqual-
JsonLogicInArray-
JsonLogicInString-
JsonLogicLessThan-
JsonLogicLessThanOrEqual-
JsonLogicNegation-
JsonLogicNone-
JsonLogicNotEqual-
JsonLogicOr-
JsonLogicReservedOperations-
JsonLogicRulesLogic-
JsonLogicSome-
JsonLogicStrictEqual-
JsonLogicStrictNotEqual-
JsonLogicVar-
MatchMode-
MatchModeOptions-
ParseNumberMethodParsing algorithms used by parseNumber.
ParseNumbersPropConfigOptions for the parseNumbers prop of QueryBuilder.
Path-
QueryValidatorFunction that validates a query.
RemoveNullabilityUtility type to make all properties non-nullable.
RuleGroupArrayThe type of the rules array in a RuleGroupType.
RuleGroupICArrayThe type of the rules array in a RuleGroupTypeIC.
RuleGroupTypeAnyShorthand for "either RuleGroupType or RuleGroupTypeIC".
RuleOrGroupArrayShorthand for "either RuleGroupArray or RuleGroupICArray".
RuleValidatorFunction that validates a rule.
StringUnionToFlexibleOptionArray-
StringUnionToFullOptionArray-
UpdateablePropertiesAll updateable properties of rules and groups (everything except id, path, and rules).
ValidationMapMap of rule/group id to its respective ValidationResult.
ValueChangeEventHandler-
ValueEditorTypeType of ValueEditor that will be displayed.
ValueSourceA source for the value property of a rule.
ValueSourceFlexibleOptions-
ValueSourceFullOptions-
ValueSourcesA valid array of potential value sources.
WithRequiredUtility type to make one or more properties required.
WithUnknownIndexAdds an unknown index property to an interface.

Variables

VariableDescription
defaultCombinatorLabelMap-
defaultOperatorLabelMap-
defaultValidatorThis is an example validation function you can pass to QueryBuilder in the validator prop. It assumes that you want to validate groups, and has a no-op for validating rules which you can replace with your own implementation.
generateAccessibleDescription-
LogType-
numericRegexRegex matching numeric strings. Passes for positive/negative integers, decimals, and E notation, with optional surrounding whitespace.
objectEntriesA strongly-typed version of Object.entries().
objectKeysA strongly-typed version of Object.keys().

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.