Filip Lastic
07/17/2020, 9:40 AMname
(lowercase). Kotlin does not support this naming, because Conflicting declarations: enum entry name, public final val name: String
. So, I want to name it with UPPERCASE and then generate enum names to GraphQL schema as lowercase (example below). I tried to use @GraphQLName
, but it doesn't work with ENUM classes 😞
enum class ApplicantsUpdateColumn {
@GraphQLName("id")
ID,
@GraphQLName("data")
DATA,
@GraphQLName("name")
NAME //I want to have this as lowercase "name"
}
Robert
07/17/2020, 9:54 AMenum class ApplicantsUpdateColumn(
@JsonValue
val graphqlName: String
) {
ID("id"),
DATA("data"),
NAME("name")
}
Filip Lastic
07/17/2020, 9:56 AM@JsonValue
or directive.. thank you! 🙂Dariusz Kuc
07/17/2020, 2:06 PMname
(which is generally an alias to toString()
) so you cannot have it named like thatGraphQLName
it looks like we support renaming enum class but not the valuesShane Myrick
07/17/2020, 6:18 PM