codegenModels

abstract val codegenModels: Property<String>

What codegen to use. One of "operationBased", "responseBased", "compat" 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

  • "compat" is for compatibility with 2.x and will be removed in a future version

  • "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"