You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
enabling graphql.servlet.maxQueryDepth causes playground docs/schema to never load #648
Enabling the graphql.servlet.maxQueryDepth property to an arbitrary value causes the graphql playground docs and schema tabs to never load and stays "spinning" infinitely.
This also seems to be affecting Voyager, if installed.
After I removed this property in my application.yml file, my docs and schema are working fine.
GraphQL Tooling such as Playground, Voyager, Altair, GraphiQL etc all perform introspection queries in order to build their experience. Example introspection query below to show the type of depth this query has
query IntrospectionQuery {
__schema {
queryType {
name
}
mutationType {
name
}
subscriptionType {
name
}
types {
...FullType
}
directives {
name
description
locations
args {
...InputValue
}
}
}
}
fragment FullType on __Type {
kind
name
description
fields(includeDeprecated: true) {
name
description
args {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
description
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}
fragment InputValue on __InputValue {
name
description
type {
...TypeRef
}
defaultValue
}
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
}
}
}
}
}
}
}
}
@setchy Think this issue should be converted into a Q&A Discussion instead with your comment as the accepted answer. This is not a bug or problem on our end imo, but simply expected behavior. Do you agree?
Activity
gabbigum commentedon Jul 16, 2021
Can you share more information? Maybe your pom.xml file?
I've tried setting this property on my graphql server using the same version of graphql-spring-boot and my playground seems to work fine.
DevelopmentBaxter commentedon Aug 17, 2021
Yes, I got the same problem.
graphql.servlet.maxQueryDepth=10 #This causes the problem
setchy commentedon Aug 17, 2021
Hi @bryevo @DevelopmentBaxter - same reason as shared in #672.
GraphQL Tooling such as Playground, Voyager, Altair, GraphiQL etc all perform introspection queries in order to build their experience. Example introspection query below to show the type of depth this query has
oliemansm commentedon Aug 19, 2021
@setchy Think this issue should be converted into a Q&A Discussion instead with your comment as the accepted answer. This is not a bug or problem on our end imo, but simply expected behavior. Do you agree?
setchy commentedon Aug 19, 2021
I agree @oliemansm 😃