grafeo
grafeo copied to clipboard
GraphQL: refuse what is not supported, with a clear error
Summary
GraphQL support is frozen at best-effort translation (decision, 2026-10-31). Grafeo keeps GQL, Cypher and SPARQL complete, with SQL/PGQ on GQL's patterns, and stops adding to GraphQL and Gremlin. What works keeps working and its bugs are still fixed; what does not work must fail clearly.
What should happen
- Every GraphQL construct Grafeo does not support fails with a clear error (
GRAFEO-Q004) that names the construct. Nothing is parsed and then ignored, and nothing gives a wrong result. - Every skipped GraphQL spec test becomes a test that expects that error, or a test of the supported behavior, so none stays skipped.
- The user guide has a table of the supported and unsupported constructs.
Constructs to check
Each item from the last review is either already supported (keep it, with a test that checks results) or refused as above:
- [ ] Variables: substitution at runtime (parsed but not resolved)
- [ ]
@skip(if:)and@include(if:)directive execution - [ ] Filters:
OR,NOT, nested filters on related entities,_regex,_like,_is_null,_is_not_null,exists - [ ] Pagination:
first/skip, cursor-basedafter/before, connection pattern (edges,node,pageInfo) - [ ] Sorting:
orderBywith ascending and descending - [ ] Aggregation:
count,sum,avg,min,max, group by - [ ] Mutations: edges (create, update, delete), upsert, nested and batch mutations, serial execution per the specification
- [ ] Operation selection by name when a document has several operations
- [ ] Introspection (
__schema,__type,__typename) - [ ] Schema: SDL, interfaces, unions, enums, input types
- [ ] Spec-conformant error format and null propagation
- [ ] Subscriptions: parsed but rejected; either implement on the event bus or document as unsupported
- [ ] Error tests for invalid syntax, unknown fields, wrong argument types, missing required arguments