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.

Introduction to GraphQL

Learn useful terminology and concepts for using the GitHub GraphQL API.

Forming calls with GraphQL

Learn how to authenticate to the GraphQL API, then learn how to create and run queries and mutations.

Using global node IDs

You can get global node IDs of objects via the REST API and use them in GraphQL operations.

Migrating from REST to GraphQL

Learn best practices and considerations for migrating from GitHub's REST API to GitHub's GraphQL API.

Using the Explorer

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.

Using pagination in the GraphQL API

Learn how to traverse data sets using cursor based pagination with the GraphQL API.

Managing enterprise accounts

You can manage your enterprise account and the organizations it owns with the GraphQL API.

Using the GraphQL API for Discussions

Learn how to use the GitHub Discussions GraphQL API.