Closed ghost closed 6 years ago
Sorry, I misled you in the Slack - the interface doesn't allow you to return a promise there.
group: {
async subscribe(rootValue, args, context) {
const userId = await getUserId(subscribeContext);
return withFilter(() => context.pubsub.asyncIterator('group'), filter)(rootValue, args, context);
},
},
In here, if asyncIteratorFn returns a promise it won't wait to resolve, and asyncIterator will just be a Promise. This causes it to fail:
gives