New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to locate schema root node __schema
#2719
Comments
Hi 👋 ! An introspection schema should have a If introspection is enabled on your endpoint, you can download a schema with the command below:
|
Hi @martinbonnin, Thank you very much. |
Sure thing! Were you able to fix your issue? Do you mind if I close this ticket or can I help with anything else? |
You just change ./gradlew to .\gradlew Have a good days! |
Sir Where to run that command? In windows Powershell its not working. |
Thanks I change ./gradlew to .\gradlew and its fine in android terminal |
Bro you should write below code in android studio terminal.
Shakeel Haider <notifications@github.com>, 18 Oca 2021 Pzt, 10:58 tarihinde
şunu yazdı:
… Hi 👋 ! An introspection schema should have a __schema.types object which
is not present in the above json so it looks like it's missing some
information. See
https://raw.githubusercontent.com/apollographql/apollo-android-tutorial/main/app/src/main/graphql/com/example/rocketreserver/schema.json
for an exemple of a complete introspection schema.
If introspection is enabled on your endpoint, you can download a schema
with the command below:
./gradlew downloadApolloSchema --endpoint=https://***/graphql --schema=app/src/main/graphql/com/example/schema.json
Sir Where to run that command? In windows Powershell its not working.
Thanks I change ./gradlew to .\gradlew and its fine in android terminal
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2719 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM67AQVSOBAIKR3QC7BVJGLS2PS37ANCNFSM4TG7WAVQ>
.
|
Question.
My project: Android, compileSdkVersion 30, Kotlin language
Use:
This is my schema.json file which I have downloaded from https://***/graphql:
When I build my Android project, the gradle throw an error:
Failed to parse GraphQL schema introspection query from
Failed to locate schema root node
__schema
Please help me. I don't know why the schema.json is wrong?
The text was updated successfully, but these errors were encountered: