Search code examples
graphqlapollo-android

Getting "error: GraphQL schema file should contain a valid GraphQL introspection query result" after apollo schema:download


So I set up the graphql server described here

Now, I want to generate android queries against this server using apollo android as per these instructions.

I've tried different folder configurations for the location of the generated schema against this sample server and no matter what I do I get an error at compile time saying "GraphQL schema file should contain a valid GraphQL introspection query result"

Any advice?


Solution

  • Turns out the solution is to use the apollo-codegen cli command and not apollo schema:download