Skip to content
BI Data

GraphQL Query Builder

About this tool

Build GraphQL queries with nested fields, variables and fragments. Generate a query and export it as a curl command for testing.

Features:

  • Visual builder — create queries using form controls
  • Nested fields — build nested data selections
  • Variables — define and reference variables
  • Fragments — create and reuse fragments
  • Export to curl — generate commands for testing
  • Syntax validation — check the query structure

Use cases:

Draft GraphQL API requests, explore query syntax and prepare examples for documentation. Test queries against the intended schema.

Query builder

Basic settings
Query fields
Object
ID
String
String
[Post]
ID
String
String
Variables
Fragments

Generated GraphQL

GraphQL query examples

query GetUser($userId: ID!) { user(id: $userId) { id name email profile { avatar bio } } } # Variables: # { # "userId": "123" # }
query GetPosts($limit: Int!, $offset: Int!) { posts(limit: $limit, offset: $offset) { id title content author { id name } comments { id text author { name } } } } # Variables: # { # "limit": 10, # "offset": 0 # }
fragment UserFields on User { id name email profile { avatar bio } } fragment PostFields on Post { id title content createdAt author { ...UserFields } } query GetUserWithPosts($userId: ID!, $postLimit: Int!) { user(id: $userId) { ...UserFields posts(limit: $postLimit) { ...PostFields comments { id text author { ...UserFields } } } } } # Variables: # { # "userId": "123", # "postLimit": 5 # }

More tools

Free tools for analysts and developers