Answers for "apollo codegen"

1

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
Posted by: Guest on March-12-2021

Code answers related to "apollo codegen"

Browse Popular Code Answers by Language