graphile / graphile/graphile.github.io

Vue subscriptions example

Open
#119 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.