Reference GraphQL translator with variables
Generates a GraphQL operation whose filter, sort and paging inputs are passed only as typed variables, following a documented input-object convention or an app-supplied mapping. The operation document stays constant, which allows persisted or allowlisted operations.
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 grid with panels for the operation document and the variables JSON, plus a persisted-query hash.
Expected behavior
Editing filters changes only the variables panel. The document and its hash stay constant for a given convention and selected field set.
Planned API surface
toGraphQL()graphqlInputMappingGraphQLResult.documentGraphQLResult.variablesoperationNamerelayConnectionAcceptance criteria
- User values never appear inside the document text (pending)
- The document is stable for a fixed schema and column selection (pending)
- Cursor paging maps to first/after and last/before in Relay mode (pending)
- The custom mapping is a pure function validated against the GraphQL input type shape (pending)