- Run the server with
node index.js
- Use ngrok to expose the server publicly
ngrok http 3000
- Subscribe to the relevant hook.
mutation subscribeToHook {
createdByAdminWebhookSubscriptionCreate(
topic: <Webhook Topic>
webhookSubscription: {
apiVersion: "unstable"
callbackUrl: "https://<NGROK URL>/hook"
}
) {
webhookSubscription {
endpoint {
__typename
}
}
}
}