A worked example, rendered from real sample data. Sign in to run the tool on your own input.
query { users(first: 10, where: { active: true }) { edges { node { id name email posts { title createdAt } } } pageInfo { hasNextPage endCursor } } }query {
users(first: 10, where: { active: true }) {
edges {
node {
id
name
email
posts {
title
createdAt
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}

Format and prettify GraphQL queries and schemas. Part of the DevTools Surf developer suite. Browse more tools in the Generators collection.