mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 21:12:09 +03:00
24 lines
374 B
YAML
24 lines
374 B
YAML
|
description: Mixed GraphQL query with variables
|
||
|
url: /v1/graphql
|
||
|
status: 200
|
||
|
response:
|
||
|
data:
|
||
|
profiles_by_pk:
|
||
|
id: 1
|
||
|
messages:
|
||
|
- id: 1
|
||
|
msg: You win!
|
||
|
query:
|
||
|
query: |
|
||
|
query ($id: Int!) {
|
||
|
profiles_by_pk(id: $id) {
|
||
|
id
|
||
|
}
|
||
|
messages(where: { id: { eq: $id }}) {
|
||
|
id
|
||
|
msg
|
||
|
}
|
||
|
}
|
||
|
variables:
|
||
|
id: 1
|