graphql: Fix example queries

The example queries were missing the outer query { ... } element (or
just { ...  })
This commit is contained in:
Robin Krahl 2021-03-22 16:00:04 +01:00 committed by Drew DeVault
parent c8cdb6b4a5
commit e448a2cce4
1 changed files with 2 additions and 2 deletions

View File

@ -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
```