mockdock.dev

~/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

▸ open mock ↗
simulated response headers
content-type: application/json

$ 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

ln -s ./related-tools