Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created August 11, 2020 11:32
Show Gist options
  • Save velotiotech/f2ce6fd13a28fed27b981734fcce27bf to your computer and use it in GitHub Desktop.
Save velotiotech/f2ce6fd13a28fed27b981734fcce27bf to your computer and use it in GitHub Desktop.
function newLinkSubscribe(parent, args, context, info) {
return context.pubsub.asyncIterator("NEW_LINK")
}
const newLink = {
subscribe: newLinkSubscribe,
resolve: payload => {
return payload
},
}
module.exports = {
newLink,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment