Why I got error: Cannot query field xx on type “Query”?

The fault with my query was that I didn’t download the new schema.

You can download the schema by using: apollo schema:download --endpoint=http://localhost:8080/graphql schema.json

replace http://localhost:8080/graphql with your server endpoint

You can see more at https://www.apollographql.com/docs/ios/downloading-schema/

Leave a Comment