Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Aug 29, 2022
1 parent d83a6d6 commit 151ad23
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions website/src/pages/docs/handlers/openapi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@ const resolvers = {
module.exports = { resolvers }
```

## Callbacks as Subscriptions

OpenAPI handler is able to process OAS Callbacks as GraphQL Subscriptions. It uses your PubSub implementation to consume the data. But you have to define webhooks for individual callbacks to make it work.

See [Subscriptions & Webhooks](../subscriptions-webhooks.md) to create an endpoint to consume a webhook. You should use the callback url as `pubSubTopic` in the webhook configuration.

Also see our example; [Subscriptions Example with Webhooks](https://codesandbox.io/s/github/Urigo/graphql-mesh/tree/master/examples/openapi-subscriptions).

## Examples

We have a lot of examples for OpenAPI Handler;
Expand Down

0 comments on commit 151ad23

Please sign in to comment.