jsegaran / apollo-schema-change-webhook

Example node apollo schema change webhook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apollo Schema Publish Webhook Listener

This is a simple server that understands the webhook format for Schema Publish subscriptions and downloads the published schema and prints it out.

Installing and running locally

To install the required node modules run npm install.

You can use a tool such as ngrok to get a temporary public url so Apollo can send webhooks. This will show an example when using ngrok. Install ngrok and setup the authtoken docs.

Run the node server with node index.js then run ngrok http 8080 to start ngrok. Use the forwarding url as the url for the webhook in Apollo Studio.

Integrating with Apollo

Create a deployed graph in Apollo Studio docs

Register a schema to your graph docs

Set up a webhook notification using the forwarding url from above docs

About

Example node apollo schema change webhook


Languages

Language:JavaScript 100.0%