graphql-engine/server/tests-py/queries/graphql_query/caching/include_directive.yaml
Alexis King e01008413e
Track variable uses within query validation for caching (fix #3097) (#3135)
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.
2019-10-16 09:33:34 -05:00

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