diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2021-03-22 16:00:04 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2021-03-22 12:41:17 -0400 |
commit | e448a2cce48e39eff466c3b18c3d943dd2e3da35 (patch) | |
tree | f6f73ec5a3166d800f92d356f7fff7afee83c112 /graphql.md | |
parent | c8cdb6b4a5fe43c4945afcac533199fd504f4d49 (diff) | |
download | sr.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.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ``` |