You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apollo: {
$subscribe: {
tagAdded: {
query: gqlsubscriptiontest{listen(topic: "hello"){relatedNodeId}},// Reactive variablesvariables(){// This works just like regular queries// and will re-subscribe with the right variables// each time the values changereturn{type: this.type,}},// Result hookresult(data){console.log(data)},},},
thanks again for the pointer benjie, here it is with the few missing backticks, for the next guy that will paste this in and might be wondering...
apollo: {
$subscribe: {
tagAdded: {
query: gql`subscription {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
The text was updated successfully, but these errors were encountered: