mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 20:41:49 +03:00
20cbe9cfd3
Introspection queries accept variables, but we need to make sure to also touch the variables that we ignore, so that an introspection query is marked not reusable if we are not able to build a correct query plan for it. A better solution here would be to deal with such unused variables correctly, so that more introspection queries become reusable. An even better solution would be to type-safely track *how* to reuse which variables, rather than to split the reusage marking from the planning. Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
- description: Test that introspection queries are properly cached (#4547)
|
|
url: /v1/graphql
|
|
status: 200
|
|
response:
|
|
data:
|
|
__type:
|
|
name: __TypeKind
|
|
enumValues:
|
|
- name: ENUM
|
|
- name: INPUT_OBJECT
|
|
- name: INTERFACE
|
|
- name: LIST
|
|
- name: NON_NULL
|
|
- name: OBJECT
|
|
- name: SCALAR
|
|
- name: UNION
|
|
query:
|
|
variables:
|
|
includeDeprecated: true
|
|
query: |
|
|
query IntrospectionQuery($includeDeprecated: Boolean!) {
|
|
__type(name:"__TypeKind") {
|
|
name
|
|
enumValues(includeDeprecated: $includeDeprecated) {
|
|
name
|
|
}
|
|
}
|
|
}
|
|
- description: Test that introspection queries are properly cached (#4547)
|
|
url: /v1/graphql
|
|
status: 200
|
|
response:
|
|
data:
|
|
__type:
|
|
name: __TypeKind
|
|
enumValues:
|
|
- name: ENUM
|
|
- name: INPUT_OBJECT
|
|
- name: INTERFACE
|
|
- name: LIST
|
|
- name: NON_NULL
|
|
- name: OBJECT
|
|
- name: SCALAR
|
|
- name: UNION
|
|
query:
|
|
variables:
|
|
includeDeprecated: true
|
|
query: |
|
|
query IntrospectionQuery($includeDeprecated: Boolean!) {
|
|
__type(name:"__TypeKind") {
|
|
name
|
|
enumValues(includeDeprecated: $includeDeprecated) {
|
|
name
|
|
}
|
|
}
|
|
}
|