hello everyone i'm using schema.json from <https:/...
# apollo-kotlin
a
hello everyone i'm using schema.json from https://apollo-fullstack-tutorial.herokuapp.com/graphql and i alwyes get this error
Copy code
Failed to locate schema root node `__schema`
also if i put the whole json object inside these
Copy code
{
  "data": {
    "__schema": {here}
  }

}
i got another error
Copy code
Required value 'types_' (JSON name 'types') missing at $.data.__schema
we solve this error in our server but is I miss something ? or they need to update the website ?
m
weird, looks like the introspectionSchema.json returned when you click the "download" button is missing some info indeed. I'll investigate that next week. In between, you should be able to introspect the endpoint directly with something like:
Copy code
./gradlew :app:downloadApolloSchema --endpoint='<https://apollo-fullstack-tutorial.herokuapp.com/>' --schema=schema.json
👍 1
✔️ 1
You should also be able use the SDL schema if you rename it to
schema.sdl
✔️ 1
👍 1
a
by the way i downloaded the schema.json manually from the playground
m
Yea, looks like this is not a complete introspection json anymore for some reason. Feel free to open an issue on https://github.com/apollographql/fullstack-tutorial
👍 1
a
@mbonnin Done , thanks for your support