Skip to main content

defaultRuleGroupProcessorDrizzle

const defaultRuleGroupProcessorDrizzle: RuleGroupProcessor<DrizzleWhereCallback>

Defined in: packages/core/src/utils/formatQuery/defaultRuleGroupProcessorDrizzle.ts:48

Default 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.

Example​

const where = formatQuery(query, 'drizzle');
const results = db.query.users.findMany({ where });

Returns​

Function that takes a Drizzle table config and an object of Drizzle operators.


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.