pluginArgument

open override fun pluginArgument(name: String, value: Any?)

The compiler plugins arguments. Arguments are shared between all compiler plugins. Using the package name of your plugin is recommended to avoid name clashes.

Argument values are added as input to the codegen task and must be simple Kotlin types:

  • String

  • Int

  • Double

  • Float

  • Boolean

  • List

  • Map

Parameters

name

the name of the argument

value

the value for this argument

See also

com.apollographql.apollo.compiler.ApolloCompilerPluginValue