generateMethods

open override val generateMethods: List<GeneratedMethod>?

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

Pass a list of the following:

  • "equalsHashCode" generates equals and hashCode methods that will compare generated class properties.

  • "toString" generates a method that will print a pretty string representing the data in the class.

  • "copy" (Kotlin only) generates a method that will copy the class with named parameters and default values.

  • "dataClass" (Kotlin only and redundant with all other methods) generates the class as a data class which will automatically generate toString, copy, equals and hashCode.

Default for kotlin: listOf("dataClass") Default for Java: listOf("equalsHashCode", "toString")