Skip to content

Commit

Permalink
Fix subscription example (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
npupko authored May 5, 2023
1 parent 07a1033 commit cbea434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/routes/api/subscription/+page.svx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Listen for real-time updates from your server using GraphQL Subscriptions.
$: updates.listen({ id: itemID })
</script>

latest value: {$updates.itemUpdate.item.text}
latest value: {$updates.data.itemUpdate.item.text}
```

Subscriptions can be defined like any other document and are triggered using the subscription store's `listen` method:
Expand Down

0 comments on commit cbea434

Please sign in to comment.