apollographql / graphql-subscriptions

:newspaper: A small module that implements GraphQL subscriptions for Node.js
MIT License
1.59k stars 133 forks source link

Support async topics #213

Closed glentakahashi closed 2 years ago

glentakahashi commented 4 years ago

It would be nice to support returning a promise of an AsyncIterator as the ResolverFn. This is also supported in graphql-js https://github.com/graphql/graphql-js/pull/918

This would enable use cases like https://github.com/MichalLytek/type-graphql/issues/470 where we could handle authorization at the topics/resolver level of a subscription, rather than within the filter.

jan-wilhelm commented 4 years ago

this is definitely needed. Why is this package no longer maintained?

noxz-dev commented 3 years ago

any news ?

hwillson commented 2 years ago

220 was merged and will be coming in release 3.0. Thanks!