Skip to content

Commit

Permalink
show end result
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Dobbelaere committed Sep 27, 2023
1 parent d303235 commit a58fd45
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/guide/subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,17 @@ class Subscription:
```

That's pretty much it for this basic start.
See for yourself by running your test server `./manange.py runserver` and opening `http://127.0.0.1:8000/graphql/` in your browser. Now run:

```graphql
subscription{count(target:10)}
```

You should see something like (where the count changes every .5s to a max of 9)
```json
{
"data": {
"count": 9
}
}
```

0 comments on commit a58fd45

Please # to comment.