- Install Apollo CLI
npm install -g apollo
- You can supply your server access token
GRAPHQL_TOKEN
and graphql end pointGRAPHQL_ENDPOINT
in environment variable. - Or you can supply as options in fastlane. See
download_schema
lane in Fastfile - run
bundle exec fastlane ios download_schema
.
- Install Apollo CLI
npm install -g apollo
- run
bundle exec fastlane ios generate_graphql
.
- All .graphql files should in
Revealed/GraphQL
. - Each graphql file should represent a single use case. E.G
GetAllPosts
orCreatePost
- All shared fragments can declared in
Fragments.graphql