DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeAPI / ConfigGraphQL Query Builder

About GraphQL Query Builder

GraphQL Query Builder preview - API / Config tool

Build GraphQL queries and mutations with field selection. Part of the DevTools Surf developer suite. Browse more tools in the API / Config collection.

Use Cases

  • Build GraphQL queries for a public API without writing query strings manually.
  • Generate curl-compatible request snippets for testing queries from a CI pipeline.
  • Draft mutations with input type variables for creating or updating records.
  • Create query templates for a code generation pipeline (codegen).

Tips

  • Use the field tree to build queries visually, then switch to the text editor to add inline fragments or directives.
  • Add @skip(if: $condition) and @include(if: $condition) directives to make queries conditionally fetch fields without multiple round trips.
  • Export the query with curl to test it from the command line or share it with a backend developer for debugging.

Fun Facts

  • GraphQL queries are hierarchically typed — every field in a query maps to a concrete type in the schema, making them self-documenting in a way SQL queries are not.
  • The GraphQL spec allows queries, mutations, and subscriptions as operation types. 'Query' is the read operation; despite its name, all three are just named differently in the spec.
  • GitHub moved its v4 API entirely to GraphQL in 2016, making it one of the first major companies to deprecate a REST API in favor of GraphQL at scale.

FAQ

What's the difference between this and the GraphQL Explorer?
The request builder focuses on constructing and exporting query strings; the GraphQL Explorer executes queries against a live endpoint. Use both together for a full workflow.
Does it generate TypeScript types from queries?
It generates the raw GraphQL query string and variable types in JSON. For full TypeScript type generation, pipe the output through a codegen tool like GraphQL Code Generator.
Can I add custom directives?
Yes — type custom directives (@defer, @stream, @cacheControl) directly in the text editor. The builder doesn't restrict directive use beyond what the schema declares.

Related API / Config Tools

REST HandlerOpenAPI ViewerSwagger to Collection JSONpackage.json AnalyzerDockerfile LinterKubernetes Manifest ValidatorMock Server Config GeneratorAPI Request Builder
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf912+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback