From a58fd45d59f4b623d56e0a519485bb8e26c701fe Mon Sep 17 00:00:00 2001 From: Sascha Dobbelaere Date: Wed, 27 Sep 2023 14:42:09 +0100 Subject: [PATCH] show end result --- docs/guide/subscriptions.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/guide/subscriptions.md b/docs/guide/subscriptions.md index a58328aa..36433c19 100644 --- a/docs/guide/subscriptions.md +++ b/docs/guide/subscriptions.md @@ -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 + } +} +```