Operator allowlist per field and type
Lets schema authors restrict operators per type and per field, for example disallowing 'contains' on a large text column that has no index. This keeps queries within what the backend can execute efficiently and safely.
Planned. This page shows the specification from issue #182. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A ticket grid with type defaults applied and a 'notes' override allowing only startsWith and eq.
Expected behavior
Filter menus show only allowed operators. A pasted AST that uses 'contains' on notes fails with OPERATOR_NOT_ALLOWED at the exact node path.
Planned API surface
operatorstypeOperatorDefaultsfieldOperatorsOPERATOR_NOT_ALLOWEDAcceptance criteria
- Field overrides take precedence over type defaults (pending)
- Overrides can narrow the operator set but never widen it beyond the global catalog (pending)
- Operator menus and validation share one rule source (pending)
- An empty operator set makes the field effectively non-filterable (pending)