graphql: Fix example queries
The example queries were missing the outer query { ... } element (or just { ... })
This commit is contained in:
parent
c8cdb6b4a5
commit
e448a2cce4
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue