apollo codegen "@client" code example
Example: apollo codegen
yarn run apollo schema:download --endpoint=https://YOUR_GRAPHQL_QUERY_ENDPOINT/ graphql-schema.json
yarn run apollo codegen:generate --localSchemaFile=graphql-schema.json --target=typescript
Remember: https://YOUR_GRAPHQL_QUERY_ENDPOINT/ your endpoint, NOT the playground
EG: In my case the endpoint is localhost:8080/query and the playground is localhost:8080