Skip to main content

defaultRuleProcessorWeaviate

const defaultRuleProcessorWeaviate: RuleProcessor

Defined in: packages/core/src/utils/formatQuery/defaultRuleProcessorWeaviate.ts:64

Default rule processor used by formatQuery for "weaviate" format. Returns a Weaviate where filter object (GraphQL/REST shape), or false if the rule can't be expressed (see formatCapabilities).

  • path is [field], or field split on fieldIdentifierSeparator when set (e.g. cross-references: "inPublication.Publication.name" w/ ".").
  • Value key from inputType/editor/parseNumbers: date/datetime-local → valueDate (RFC 3339); checkbox/switch → valueBoolean; numbers → valueInt/ valueNumber; else valueText.
  • String operators use Like; */? in values pass through as wildcards (Weaviate has no escape). Negated string operators wrap Like in Not.
  • in/notIn → ContainsAny/ContainsNone w/ an array under the singular value key. Text values are tokenized per the property's tokenization.
  • null/notNull → IsNull (requires invertedIndexConfig.indexNullState: true).
  • Not and ContainsNone require Weaviate v1.33+.

See​

https://docs.weaviate.io/weaviate/api/graphql/filters


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.