Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

GraphQL overview

Background

GraphQL is a query language and server-side runtime for APIs, originally developed by Facebook. In GraphQL, the API is defined via a strictly typed schema, giving the client the ability to specify the data they need in their request.

Differences from REST

Some of the key differences between REST and GraphQL include:

...

Some other headers are required for authentication, but the format and content is dependent on the endpoint type being accessed. View the documentation for the specific endpoint type for details.

Persisted vs custom queries

...

The available queries and mutations are determined by the schema for the endpoint type being requested. See the API reference documentation or in Totara via Quick access menu > Development > API > API Documentation for a full list of available queries and mutations, their arguments, and return values.

...