Skip to content

Commit

Permalink
added subscription files
Browse files Browse the repository at this point in the history
  • Loading branch information
joyja committed Mar 23, 2020
1 parent fa56583 commit 1628675
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/resolvers/Subscription/device.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const deviceUpdate = {
subscribe: (root, args, context) => {
return context.pubsub.asyncIterator(`deviceUpdate`)
}
}

module.exports = {
deviceUpdate
}
9 changes: 9 additions & 0 deletions src/resolvers/Subscription/service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const serviceUpdate = {
subscribe: (root, args, context) => {
return context.pubsub.asyncIterator(`serviceUpdate`)
}
}

module.exports = {
serviceUpdate
}

0 comments on commit 1628675

Please sign in to comment.