You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
700
+
701
+
It also unlocks the possibility of having a distributed subscriptions system.
702
+
703
+
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`:
704
+
705
+
```diff filename="gateway.config.ts"
706
+
import { defineConfig } from '@graphql-hive/gateway';
707
+
- import { PubSub } from '@graphql-hive/gateway';
708
+
+ import { MemPubSub } from '@graphql-hive/gateway';
0 commit comments