Properties

Link copied to clipboard

Whether to decapitalize fields (for instance FooBar ->fooBar). This is useful if your schema has fields starting with an uppercase as it may create name clashes with models that use PascalCase

Link copied to clipboard

Specifies which methods will be auto generated on operations, models, fragments and input objects.

Link copied to clipboard

The format to output for the operation manifest. Valid values are:

Link copied to clipboard
abstract val packageName: String?

The package name for generated classes. Operations use the package name directly. Other classes like fragments and schema types use sub-packages to avoid name clashes:

Link copied to clipboard
abstract val rootPackageName: String?

If non-null, get the package names from the normalized file paths and prepend rootPackageName

Link copied to clipboard

The target language to use to generate the sources

Link copied to clipboard
abstract val useSemanticNaming: Boolean?

When true, the operation class names are suffixed with their operation type like ('Query', 'Mutation' ot 'Subscription'). For an example, query getDroid { ... } GraphQL query generates the 'GetDroidQuery' class.