Skip to content

Commit 639f6bb

Browse files
committed
see example
1 parent 2fb2128 commit 639f6bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/web/docs/src/content/migration-guides/gateway-v1-v2.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ hive-gateway supergraph \
698698

699699
The Hive PubSub package has been rewritten to provide a better developer experience and improved support for asynchronous operations. The new interface is more intuitive and easier to use, making it simpler to implement pub/sub functionality in your Hive Gateway.
700700

701-
It also unlocks the possibility of having a distributed subscriptions system.
701+
It also unlocks the possibility of having a distributed subscriptions system, [see Redis PubSub documentation](/docs/gateway/subscriptions#redis-pubsub).
702702

703703
The only breaking change relating to Hive Gateway is the renaming of `PubSub` to `MemPubSub` to better reflect its in-memory nature. In case you have been using `PubSub`, you need to replace it with `MemPubSub`:
704704

@@ -712,3 +712,5 @@ export const gatewayConfig = defineConfig({
712712
+ pubsub: new MemPubSub()
713713
});
714714
```
715+
716+
However, if you have been implementing your own pubsub system by implementing the `HivePubSub` interface from `@graphql-hive/pubsub`, you need to update your implementation to match the [new `PubSub` interface](/docs/gateway/subscriptions#pubsub). Advise the `@graphql-hive/pubsub` changelog for exact migration steps upgrading from v1 to v2.

0 commit comments

Comments
 (0)