GraphQL API Release Notes

To discover what’s new and changed in GraphQL API, see the Salesforce Release Notes.

Salesforce Release Notes

GraphQL uses a versioned base URI in this format: {MyDomainName}.my.salesforce.com/services/data/v{ApiVersion}/graphql. Update your base URI when changing API versions.

Here’s a list of changes to the GraphQL API reference content.

No API changes

No API changes

  • GraphQLInputRepresentation has a new extensions property for passing extensions with your request.
  • GraphQLOutputRepresentation has a new extensions property that returns any extensions included in the query result.

No API changes

No API changes

No API changes

No API changes

No API changes

No API changes

  • GraphQLErrorRepresentation has a new extensions property that provides additional error details, including an ErrorType property that identifies the type of error returned.

No API changes. Request and response body examples are now included in the reference documentation.

Initial release of the GraphQL API reference. Supports a single POST /graphql endpoint for executing GraphQL queries.

The GraphQLInputRepresentation request body has these properties.

  • query—the GraphQL query string
  • operationName—the operation to execute
  • variables—a map of variables for the query

The GraphQLRepresentation response body has these properties.

  • data—the query result data
  • errors—an array of GraphQLErrorRepresentation objects, each with:
    • message—description of the error
    • locations—line and column in the query where the error occurred
    • path—path to the field that caused the error