mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 12:31:52 +03:00
e01008413e
This fix is a little ugly, but it’s the only simple solution without a significant refactoring that restructures the relationship between GraphQL/Validate and GraphQL/Resolve. The ugliness should go away if we implement something like #2801.
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
|