aboutsummaryrefslogtreecommitdiffstats
path: root/graphql.md
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2021-03-22 16:00:04 +0100
committerDrew DeVault <sir@cmpwn.com>2021-03-22 12:41:17 -0400
commite448a2cce48e39eff466c3b18c3d943dd2e3da35 (patch)
treef6f73ec5a3166d800f92d356f7fff7afee83c112 /graphql.md
parentc8cdb6b4a5fe43c4945afcac533199fd504f4d49 (diff)
downloadsr.ht-docs-e448a2cce48e39eff466c3b18c3d943dd2e3da35.tar.gz
graphql: Fix example queries
The example queries were missing the outer query { ... } element (or just { ... })
Diffstat (limited to 'graphql.md')
-rw-r--r--graphql.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphql.md b/graphql.md
index e842e85..4009ae3 100644
--- a/graphql.md
+++ b/graphql.md
@@ -85,7 +85,7 @@ query which is supported on all APIs is:
```json
{
- "query": "version { major, minor, patch }"
+ "query": "{ version { major, minor, patch } }"
}
```
@@ -100,7 +100,7 @@ oauth_token=your oauth token
curl \
--oauth2-bearer="$oauth_token" \
-H 'Content-Type: application/json' \
- -d '{"query": "version { major, minor, patch }"}' \
+ -d '{"query": "{ version { major, minor, patch } }"}' \
https://meta.sr.ht/query
```