Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Last active August 11, 2020 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/8faf35d5b007611b6d11fd93f0e37bd9 to your computer and use it in GitHub Desktop.
Save velotiotech/8faf35d5b007611b6d11fd93f0e37bd9 to your computer and use it in GitHub Desktop.
function newVoteSubscribe(parent, args, context, info) {
return context.pubsub.asyncIterator("NEW_VOTE")
}
const newVote = {
subscribe: newVoteSubscribe,
resolve: payload => {
return payload
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment