Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Last active August 11, 2020 11:39
Embed
What would you like to do?
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