Last active
August 11, 2020 11:39
-
-
Save velotiotech/8faf35d5b007611b6d11fd93f0e37bd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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