Hi Everyone ,
i’m try to create ios sample project using apollo graphql to use my project . i tried work documents (Introduction to Apollo iOS - Apollo GraphQL Docs )but bit difficult to understand after creating schema.json and query file . can any one provide step by step guideline for create it
If you want use this is Graph API to create sample project and share the details steps me , schema or server endpoint : https://countries.trevorblades.com/
Please any one help me learn work this .
Thank you so much for yours response.
I have tried given link but i am getting some issues when i do code generate .
Endpoint : https://countries.trevorblades.com/
➜ HelloGraphQL ls
➜ HelloGraphQL ./apollo-ios-cli generate
Error: GraphQLSchemaValidationError: There can be only one directive named “@key”.
There can be only one directive named “@extends”.
Field “Country.name” can only be defined once.
It might help if you can share the contents of your
apollo-codegen-config.json file. That error sounds like there is duplication of the schema in more than one file.
- make sure that countrylist.graphql is only you operations
- make sure that schema.graphqls is only the schema