Skip to content

Generate Graphql Operations

generate_graphql_operations

Generate GraphQL operations.

bundle exec fastlane generate_graphql_operations

Environment Variables

Variable
APOLLO_CODEGEN_CONFIG_PATH

Details

What it does

  1. Checks if APOLLO_CODEGEN_CONFIG_PATH is defined
  2. If set, runs the Apollo iOS CLI code generation script:
    Scripts/apollo-ios-cli generate --path <config_path>
    

Notes

  • This lane is automatically called by the test and beta/release lanes
  • If APOLLO_CODEGEN_CONFIG_PATH is not set, the lane is a no-op
  • The Apollo iOS CLI script is expected at Scripts/apollo-ios-cli relative to the project root
  • For more information see the Apollo iOS documentation