Created
August 11, 2020 11:32
-
-
Save velotiotech/f2ce6fd13a28fed27b981734fcce27bf 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 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