Schema change notifications
You can configure Apollo Studio to notify your team whenever any changes (additions, deprecations, removals, etc.) are made to your graph's registered schema:
You can configure separate change notifications for each variant of your graph.
Setup
See Setting up Studio Notifications.
Webhook format
If you receive schema change notifications via a custom webhook, notification details are provided as a JSON object in the request body.
The JSON object conforms to the structure of the ResponseShape
interface:
interface Change {description: string;}interface ResponseShape {eventType: "SCHEMA_PUBLISH"; // Currently, only SCHEMA_PUBLISH webhooks are supportedeventID: string;changes: Change[]; // Set of schema changes that occurredschemaURL: string; // See description belowschemaURLExpiresAt: string; // ISO 8601 Date stringgraphID: string;variantID: string; // See description belowtimestamp: string; // ISO 8601 Date string}
-
The value of
schemaURL
is a short-lived (24-hour) URL that enables you to fetch the published schema without authenticating (such as with an API key). The URL expires at the time indicated byschemaURLExpiresAt
. -
The value of
variantID
is in the formatgraphID@variantName
(e.g.,mygraph@staging
).