Skip to main content

This version of GitHub Enterprise Server was discontinued on 2024-09-25. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.

Reference

View reference documentation to learn about the data types available in the GitHub GraphQL API schema.

Queries

The query type defines GraphQL operations that retrieve data from the server.

Mutations

The mutation type defines GraphQL operations that change data on the server.

Objects

Objects in GraphQL represent the resources you can access.

Interfaces

Interfaces serve as parent objects from which other objects can inherit.

Enums

Enums represent possible sets of values for a field.

Unions

A union is a type of object representing many objects.

Input objects

Input objects can be described as "composable objects" because they include a set of input fields that define the object.

Scalars

Scalars are primitive values Int, Float, String, Boolean, or ID.