Example-schema builder
The current builder works with included example schemas rather than importing or introspecting an arbitrary live endpoint. Validate names, types, and required arguments against your actual GraphQL schema.
Construct GraphQL operations visually from the provided example schemas. Choose an operation type, select fields, add arguments and variables, then copy the generated operation and variables.
The current builder works with included example schemas rather than importing or introspecting an arbitrary live endpoint. Validate names, types, and required arguments against your actual GraphQL schema.
No. The current tool generates operations from built-in example schemas and does not execute requests.
Yes. Choose query, mutation, or subscription operation types.
Yes. The builder displays the operation and its variables JSON.
No schema loaded
Select an example above or build your own schema
No variables defined
query MyQuery {
}import { gql } from '@apollo/client';
const MYQUERY_QUERY = gql`
query MyQuery {
}
`;
// Usage
const { loading, error, data } = useQuery(
MYQUERY_QUERY
);const query = `
query MyQuery {
}
`;
const variables = {};
fetch('https://your-graphql-endpoint.com/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_TOKEN'
},
body: JSON.stringify({
query,
variables
})
})
.then(res => res.json())
.then(data => console.log(data));curl -X POST https://your-graphql-endpoint.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{"query":"query MyQuery {\n\n}"}'