graphile / graphile/graphile.github.io

Vue subscriptions example

Offen
#119 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
SCSS
Sterne
27
Forks
126
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by reviewing the Vue subscription snippet in the issue and the linked Discord discussion for the intended website location and context. Done means the website includes a clear Vue subscriptions example matching the requested usage and the example is checked for correctness.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
graphql, javascript
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.