codegenModels

abstract val codegenModels: Property<String>

What codegen to use. One of "operationBased", "responseBased" or "experimental_operationBasedWithInterfaces"

  • "operationBased" generates models that map 1:1 with the GraphQL operation

  • "responseBased" generates models that map 1:1 with the Json response

  • "experimental_operationBasedWithInterfaces" is like "operationBased" except it will generate an interface for selection sets that contain fragments to make it easier to use when statements

Default value: "operationBased"