Open javierpe opened 3 weeks ago
Hi!
From the stacktrace, it looks like the server returns a null
value for the field isRepeatable
- which is not compliant with the GraphQL spec here.
If you're able, could you execute this query and paste the result?
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
description
locations
args {
...InputValue
}
isRepeatable
}
}
}
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
}
}
}
}
}
}
}
}
@javierpe Did you have a chance to execute the introspection query?
Version
4.0.0
Summary
Hi, Im trying download schema from Hasura GraphQL but I get an exception.
My Apollo Gradle config:
apollo { service("service") { packageName.set("com.survey.graphql") generateKotlinModels.set(true) generateSourcesDuringGradleSync.set(true) generatedSchemaName.set("schema") introspection { schemaFile.set(file("src/main/graphql/schema.graphql")) endpointUrl.set("http://mgsurveys24.mgroup.com.mx:1337/v1/graphql") headers.put("x-hasura-admin-secret", "---") } } }
With terminal and graphqurl works fine: graphqurl http://mgsurveys24.mgroup.com.mx:1337/v1/graphql -H 'X-Hasura-Admin-Secret: ---' --introspect > schema.graphql
Steps to reproduce the behavior
./gradlew :network:impl:downloadServiceApolloSchemaFromIntrospection
Logs