Skip to content

Commit

Permalink
fix generateMethods KDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Feb 5, 2024
1 parent f258a05 commit 0246def
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions docs/source/advanced/plugin-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ auto-generate `toString`, `equals` `hashCode`, `copy` and `componentN` for most
auto-generated methods, and/or you are worried about the size of the generated code, you can configure the Apollo compiler to generate none
or a subset of the data class methods. To do this, set `generateMethods` to a list of the methods you need. The available methods are:

- "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 for
- "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](https://kotlinlang.org/docs/data-classes.html)
which will automatically generate `toString`, `copy`, `equals` and `hashCode`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ interface CommonCodegenOpt {
*
* 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 for
* - "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](https://kotlinlang.org/docs/data-classes.html)
* which will automatically generate `toString`, `copy`, `equals` and `hashCode`.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,11 @@ interface Service {
/**
* Specifies which methods will be auto generated on operations, models, fragments and input objects.
*
* Pass a list of any of the following:
* 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 for
* - "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](https://kotlinlang.org/docs/data-classes.html)
* which will automatically generate `toString`, `copy`, `equals` and `hashCode`.
*
Expand Down

0 comments on commit 0246def

Please sign in to comment.