Build status notifications
Receive webhook alerts whenever GraphOS attempts to build a new supergraph schema
This feature is only available with a GraphOS Dedicated or Enterprise plan.
To compare GraphOS feature support across all plan types, see the pricing page.
This feature is in preview. Your questions and feedback are highly valued—don't hesitate to get in touch with your Apollo contact or on the official Apollo GraphQL Discord.
You can configure GraphOS to notify your team via webhook whenever GraphOS attempts to build a new supergraph schema for your federated graph. The notification indicates whether the build succeeded and provides a temporary URL to the new supergraph schema if so.
You can configure separate change notifications for each variant of your graph.
Setup
See Setting up GraphOS Notifications.
Webhook format
Build status notifications are sent exclusively as webhooks. Details are provided as a JSON object in the request body.
The JSON object conforms to the structure of the ResponseShape
interface:
interface BuildError {message: string;locations: ReadonlyArray<Location>;}interface Location {line: number;column: number;}interface ResponseShape {eventType: 'BUILD_PUBLISH_EVENT';eventID: string;supergraphSchemaURL: string | undefined; // See description belowbuildSucceeded: boolean;buildErrors: BuildError[] | undefined; // See description belowgraphID: string;variantID: string; // See description belowtimestamp: string; // ISO 8601 Date string}
If the build succeeds, the value of
supergraphSchemaURL
is a short-lived (24-hour) URL that enables you to fetch the supergraph schema without authenticating (such as with an API key). Otherwise, this field is not present.If the build fails,
buildErrors
is an array ofBuildError
objects that describe the errors that occurred during the build. Otherwise, this field is not present.The value of
variantID
is in the formatgraphID@variantName
(for example,mygraph@staging
). This format is known as a graph ref.