Apollo Android requires your GraphQL server's schema as a
schema.json file. You can obtain the contents of this file by running an introspection query on your server.
The Apollo Gradle plugin exposes a
downloadApolloSchema task to help you obtain your schema. Provide this task your server's GraphQL endpoint and the output location for the
Always remember to replace
API_SECRET with the correct value that you copied from apito console.
Go to this page if you do not know where to find your api secrets for your project
./gradlew downloadApolloSchema \
--header="Authorization: Bearer API_SECRET"