Skip to main content

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.