Skip to main content

defaultRuleGroupProcessorChroma

const defaultRuleGroupProcessorChroma: RuleGroupProcessor<Record<string, unknown>>

Defined in: packages/core/src/utils/formatQuery/defaultRuleGroupProcessorChroma.ts:19

Rule group processor used by formatQuery for "chroma" format. Produces a Chroma metadata filter object.

  • and → $and, or → $or; single-child groups are unwrapped.
  • No group-level $not: not groups are negated via De Morgan push-down (negateRuleGroup). Missing-field semantics may differ from a true NOT.
  • Returns {} if no rules survive; omit the where param in that case (Chroma rejects {}).

See​

https://docs.trychroma.com/docs/querying-collections/metadata-filtering


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.