HTTP/2 301
content-length: 0
location: https://docs.github.com/en/graphql/guides
HTTP/2 200
access-control-allow-origin: *
content-security-policy: default-src 'none';prefetch-src 'self';connect-src 'self';font-src 'self' data:;img-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com data: placehold.it;object-src 'self';script-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' data:;script-src-attr 'self';frame-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com https://support.github.com https://www.youtube-nocookie.com;frame-ancestors 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com;style-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' 'unsafe-inline' data:;child-src 'self';manifest-src 'self';upgrade-insecure-requests;base-uri 'self';form-action 'self'
cross-origin-opener-policy: same-origin
cross-origin-resource-policy: same-origin
origin-agent-cluster: ?1
referrer-policy: no-referrer-when-downgrade
x-content-type-options: nosniff
x-dns-prefetch-control: off
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-xss-protection: 0
cache-control: public, max-age=60
x-powered-by: Next.js
content-type: text/html; charset=utf-8
x-github-backend: Kubernetes
x-github-request-id: 43F2:71E2A:2876B2A:30471EB:68811789
content-encoding: gzip
accept-ranges: bytes
age: 1
date: Wed, 23 Jul 2025 17:10:34 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210029-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753290633.939144,VS0,VE1743
vary: Accept-Encoding
strict-transport-security: max-age=31557600
content-length: 19450
Guides - GitHub Docs Skip to main content
Guides Learn about getting started with GraphQL, migrating from REST to GraphQL, and how to use the GitHub GraphQL API for a variety of tasks.
Learn useful terminology and concepts for using the GitHub GraphQL API.
Learn how to authenticate to the GraphQL API, then learn how to create and run queries and mutations.
You can get global node IDs of objects via the REST API and use them in GraphQL operations.
Learn best practices and considerations for migrating from GitHub's REST API to GitHub's GraphQL API.
You can run queries on real GitHub data using the GraphQL Explorer, an integrated development environment in your browser that includes docs, syntax highlighting, and validation errors.
Learn how to traverse data sets using cursor based pagination with the GraphQL API.
Learn how to use the GitHub Discussions GraphQL API.
Learn about the two global node ID formats and how to migrate from the legacy format to the new format.
Help and support Ask Copilot your question. Ask Copilot