Skip to main content

getDatetimeRuleProcessorCypher()

getDatetimeRuleProcessorCypher(apiFns: RQBDateTimeLibraryAPI): RuleProcessor

Defined in: getDatetimeRuleProcessorCypher.ts:27

Generates a rule processor with date/time features for use by formatQuery with the "cypher" or "gql" format.

Supports:

  • Standard comparison operators (=, !=, <, >, <=, >=)
  • Range operators (between, notBetween, in, notIn)
  • Duration math via custom operators: olderThanDuration and withinDuration (e.g., value "P30D"datetime() - field > duration('P30D'))

Parameters

ParameterType
apiFnsRQBDateTimeLibraryAPI

Returns

RuleProcessor


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.