ApolloCompilerPlugin

ApolloCompilerPlugin allows to customize the behavior of the Apollo Compiler.

ApolloCompilerPlugin instances are created by java.util.ServiceLoader and may be instantiated several times in a codegen run. Each instance is created in a separate classloader and contains the apollo-compiler version loaded by your build tool.

You may check com.apollographql.apollo.compiler.APOLLO_VERSION to check for compatibility of your plugin with the version of apollo-compiler available at runtime.

Functions

Link copied to clipboard

This is called before each compilation step. A typical compilation involves different steps:

Link copied to clipboard

Computes operation ids for persisted queries.