graphile / graphile/graphile.github.io
Vue subscriptions example
- Dominant language
- SCSS
- Stars
- 27
- Forks
- 126
- PR merge metrics
- No merged PRs in 30d
Description
```js
apollo: {
$subscribe: {
tagAdded: {
query: gqlsubscription test{listen(topic: "hello"){relatedNodeId}},
// Reactive variables
variables () {
// This works just like regular queries
// and will re-subscribe with the right variables
// each time the values change
return {
type: this.type,
}
},
// Result hook
result (data) {
console.log(data)
},
},
},
```
https://discordapp.com/channels/489127045289476126/498852330754801666/560214820121739285
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.