graphql-subscriptions
graphql-subscriptions copied to clipboard
:newspaper: A small module that implements GraphQL subscriptions for Node.js
the `pubsub.asyncIterator` method [currently is typed as returning an AsyncIterator](https://github.com/apollographql/graphql-subscriptions/blob/master/src/pubsub-engine.ts#L7-L9). While this is accurate, it misses an important detail: The `subscribe` function of a graphql field expects an AsyncIterable, not...
We are running a system where subscriptions only need to be initialised. The subsequent new event listeners are just a drag on memory. Currently we place that logic on the...
# How do you make a `Subscription` resolver independent of resolvers for `Creating` and `Updating` records ### ❌ Current behaviour: `subscribeTasks` resolver doesn't have proper filters, nor does it return...
Shouldn't the return type be `AsyncIterableIterator` ([TS lib file](https://github.com/Microsoft/TypeScript/blob/master/lib/lib.es2018.asynciterable.d.ts#L42)) instead of `AsyncIterator`? I see it has the `Symbol.asyncIterator` property [here](https://github.com/apollographql/graphql-subscriptions/blob/master/src/event-emitter-to-async-iterator.ts#L71)
Release 3.0
This release PR will serve to collect significant new features, deprecation warnings, and minor breaking changes that we intend to release in `[email protected]`. It should not be merged until we're...
Hi all, We are using PubSub in our application in this manner: **When deletion event is arriving into server:** `pubsub.publish('onDeleteItem', {onDeleteItem: [msg.payload.ItemId]});` **Resolvers:** ` Subscription: { onDeleteItem: { subscribe: ()...
When passing in an invalid ID such as `0` to `Pubsub.unsubscribe()` it will throw with an unhelpful error. ```ts TypeError: Cannot read property '0' of undefined at PubSub.unsubscribe (/usr/local/bin/api/node_modules/graphql-subscriptions/dist/pubsub.js:40:61) at...
Hi, I wonder if there is a place for such functionality in this library. What I'm trying to achieve is to be able to do something like that: ``` const...
- [X] has-reproduction - [ ] feature - [ ] blocking - [ ] good first issue Reproduce using these commands ```bash npm ini -y npm install graphql npm install...
Otherwise I get the following error: `TS2775: Assertions require every name in the call target to be declared with an explicit type annotation.`