apollographql / graphql-subscriptions

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

Question about the withStaticFields sample in README #214

Closed redwork321 closed 4 years ago

redwork321 commented 4 years ago

Should't the example given in the README withStaticFields delegate the implementation of return and throw?

Ex.:


return() {
  return asyncIterator.return();
},
throw(error) {
  return asyncIterator.throw(error);
},
`