GenerateClientParameters

interface GenerateClientParameters : WorkParameters

WorkParameters used for generating GraphQL HTTP client.

Properties

Link copied to clipboard
abstract val allowDeprecated: Property<Boolean>

Boolean flag indicating whether to allow selection of deprecated fields.

Link copied to clipboard
abstract val customScalars: ListProperty<GraphQLScalar>

Optional list of custom scalars and their mappings to Kotlin types and a target converter.

Link copied to clipboard
abstract val packageName: Property<String>

Target package for the generated classes.

Link copied to clipboard
abstract val parserOptions: Property<GraphQLParserOptions>

Set parser options for processing GraphQL queries and schema definition language documents

Link copied to clipboard
abstract val queryFiles: ListProperty<File>

List of query files that will be processed to generate HTTP clients.

Link copied to clipboard
abstract val schemaPath: Property<String>

GraphQL schema file path that will be used to generate client code.

Link copied to clipboard
abstract val serializer: Property<GraphQLSerializer>

Type of JSON serializer that will be used to generate the data classes.

Link copied to clipboard
abstract val targetDirectory: Property<File>

Directory where to save the generated source files.

Link copied to clipboard
abstract val useOptionalInputWrapper: Property<Boolean>

Explicit opt-in flag to wrap nullable arguments in OptionalInput that supports both null and undefined values.