GraphQL Query Builder

Visual drag & drop builder — generate perfect GraphQL queries without typing!

Schema Explorer
Query
me { id name email }
users(limit: Int) { id name posts { title } }
post(id: ID!) { id title author { name } comments { text } }
Mutation
createPost(input: CreatePostInput!) { id title }
login(email: String!, password: String!) { token user { id name } }
Query Builder

Drag fields here to build your query

Perfect GraphQL Query

            

About the GraphQL Query Builder

This builder puts a GraphQL operation together from a small sample schema shown on the left: me, users, post, createPost and login. Drag a field onto the canvas to add its selection to the query. Click a badge to remove it. The output updates as you go and can be copied or downloaded as a .graphql file.

Example

Input: Drag me onto the canvas.

Output (excerpt):

query MyQuery
{
  me { id name email }
}

Limits

  • The schema is fixed sample data. The page cannot load your own schema or run introspection, so treat it as a learning aid for query structure.
  • Drag and drop needs a mouse. It does not work reliably on touch screens.
  • The Variables box is copied into the operation header as written. It is not checked against declared GraphQL types ($id: ID!), so fix the variable definitions by hand before running the query.
  • Mixing query and mutation fields produces one operation labelled query. A real server will reject that. Build mutations on their own.

Privacy

All conversion happens in JavaScript inside your browser. The tool code on this page makes no network request with what you type, so your input is not uploaded or stored by PyInns. (The page itself still loads ads and shared libraries from third-party CDNs.)