graphql-engine/server/tests-py/queries/graphql_query/caching/include_directive.yaml

33 lines
621 B
YAML
Raw Normal View History

- 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