graphiql: IntrospectionQuery fails, unable to run graphiql
Hi everyone,
as of this morning (but possibly even earlier) I haven’t been able to run graphiql in my project anymore. After extensive investigation, I’ve come to a conclusion that none of my changes have broken the app.
It seems to me that the IntrospectionQuery has changed and is not compatible anymore.
Here is the IntrospectionQuery that it’s trying to run:
query IntrospectionQuery {
__schema {
description
queryType { name }
mutationType { name }
types {
...FullType
}
directives {
name
description
locations
args(includeDeprecated: true) {
...InputValue
}
}
}
}
fragment FullType on __Type {
kind
name
description
specifiedByURL
fields(includeDeprecated: true) {
name
description
args(includeDeprecated: true) {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields(includeDeprecated: true) {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
description
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}
fragment InputValue on __InputValue {
name
description
type { ...TypeRef }
defaultValue
isDeprecated
deprecationReason
}
fragment TypeRef on __Type {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}
}
}
and here are the errors that I’m getting:
{
"errors": [
{
"message": "Validation error of type UnknownArgument: Unknown field argument includeDeprecated @ '__schema/directives/args'",
"locations": [
{
"line": 15,
"column": 16
}
],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "Validation error of type FieldUndefined: Field 'specifiedByURL' in type '__Type' is undefined @ 'FullType/specifiedByURL'",
"locations": [
{
"line": 26,
"column": 7
}
],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "Validation error of type UnknownArgument: Unknown field argument includeDeprecated @ 'FullType/fields/args'",
"locations": [
{
"line": 30,
"column": 14
}
],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "Validation error of type UnknownArgument: Unknown field argument includeDeprecated @ 'FullType/inputFields'",
"locations": [
{
"line": 39,
"column": 19
}
],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "Validation error of type FieldUndefined: Field 'isDeprecated' in type '__InputValue' is undefined @ 'InputValue/isDeprecated'",
"locations": [
{
"line": 61,
"column": 7
}
],
"extensions": {
"classification": "ValidationError"
}
},
{
"message": "Validation error of type FieldUndefined: Field 'deprecationReason' in type '__InputValue' is undefined @ 'InputValue/deprecationReason'",
"locations": [
{
"line": 62,
"column": 7
}
],
"extensions": {
"classification": "ValidationError"
}
}
]
}
I am using:
<dependency>
<groupId>com.netflix.graphql.dgs</groupId>
<artifactId>graphql-dgs-platform-dependencies</artifactId>
<version>4.1.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
And I was able to get the following link from the console:
https://unpkg.com/graphiql@1.5.9/graphiql.min.js
Let me know if I can provide any more information regarding this issue.
Thank you!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 17 (7 by maintainers)
fixed!