~/tools / 03 / graphql-query-response
GraphQL Response Mocker
GraphQL clients are picky: they expect a top-level data key, relay-style connections, and errors that carry locations and extensions. This tool speaks that dialect natively. Mock a healthy query result with nested edges, or a validation failure with a proper GRAPHQL_VALIDATION_FAILED extension code, and feed it straight to your client cache.
compose payload
— validating —
exported mock url
simulated response headers
$ man graphql-mock
Everything above is encoded into the #data= fragment of the exported URL — deflated and base64url-packed by your browser. Fragments are never sent to any server, so this mock is shareable and private. Paste the URL anywhere: a teammate's browser decodes it identically.
grep -i related-searches
- mock graphql response online
- fake graphql api for testing
- graphql errors array example
- graphql edges node mock data
- test apollo client without server