Initial commit

This commit is contained in:
Riccardo
2021-01-01 10:14:50 +01:00
parent 67a1e45386
commit bccea7574a
40 changed files with 15172 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
function newLinkSubscribe(parent, args, context, info) {
return context.pubsub.asyncIterator("NEW_LINK")
}
const newLink = {
subscribe: newLinkSubscribe,
resolve: payload => {
return payload
},
}
function newVoteSubscribe(parent, args, context, info) {
return context.pubsub.asyncIterator("NEW_VOTE")
}
const newVote = {
subscribe: newVoteSubscribe,
resolve: payload => {
return payload
},
}
module.exports = {
newLink,
newVote
}