mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-21 14:31:55 +03:00
33 lines
621 B
YAML
33 lines
621 B
YAML
|
- description: Test that include directives are properly cached (#3097)
|
||
|
url: /v1/graphql
|
||
|
status: 200
|
||
|
response:
|
||
|
data:
|
||
|
users:
|
||
|
- name: Alyssa
|
||
|
- name: Ben
|
||
|
query:
|
||
|
query: |
|
||
|
query ($flag: Boolean!) {
|
||
|
users @include(if: $flag) {
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
variables:
|
||
|
flag: true
|
||
|
|
||
|
- description: Test that include directives are properly cached (#3097)
|
||
|
url: /v1/graphql
|
||
|
status: 200
|
||
|
response:
|
||
|
data: {}
|
||
|
query:
|
||
|
query: |
|
||
|
query ($flag: Boolean!) {
|
||
|
users @include(if: $flag) {
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
variables:
|
||
|
flag: false
|