14 lines
255 B
JavaScript
14 lines
255 B
JavaScript
function newLinkSubscribe(parent, args, context, info) {
|
|
return context.pubsub.asyncIterator("NEW_LINK")
|
|
}
|
|
|
|
const newAppointment = {
|
|
subscribe: newLinkSubscribe,
|
|
resolve: payload => {
|
|
return payload
|
|
},
|
|
}
|
|
|
|
module.exports = {
|
|
newAppointment,
|
|
} |