IrOptions

@Serializable
class IrOptions(val fieldsOnDisjointTypesMustMerge: Boolean?, val decapitalizeFields: Boolean?, val flattenModels: Boolean?, val warnOnDeprecatedUsages: Boolean?, val failOnWarnings: Boolean?, val addTypename: String?, val generateOptionalOperationVariables: Boolean?, val alwaysGenerateTypesMatching: Set<String>?, val codegenModels: String?)

Constructors

Link copied to clipboard
constructor(fieldsOnDisjointTypesMustMerge: Boolean?, decapitalizeFields: Boolean?, flattenModels: Boolean?, warnOnDeprecatedUsages: Boolean?, failOnWarnings: Boolean?, addTypename: String?, generateOptionalOperationVariables: Boolean?, alwaysGenerateTypesMatching: Set<String>?, codegenModels: String?)

Properties

Link copied to clipboard
Link copied to clipboard

Additional scalar/enum/input types to generate. For input types, this will recursively add all input fields types/enums.

Link copied to clipboard
Link copied to clipboard

Whether to decapitalize field names in the generated models (for instance FooBar ->fooBar).

Link copied to clipboard
Link copied to clipboard

Whether fields with different shape are disallowed to be merged in disjoint types.

Link copied to clipboard
Link copied to clipboard

Whether to generate operation variables as com.apollographql.apollo3.api.Optional

Link copied to clipboard

Functions

Link copied to clipboard
@JvmName(name = "writeIrOptions")
fun IrOptions.writeTo(file: File)