graphile / graphile/graphile.github.io

Vue subscriptions example

Aperta
#119 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
SCSS
Stelle
27
Fork
126
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

```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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.