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"
}
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 thatDariusz Kuc
07/17/2020, 2:07 PMGraphQLName
it looks like we support renaming enum class but not the valuesDariusz Kuc
07/17/2020, 2:08 PMDariusz Kuc
07/17/2020, 2:09 PMDariusz Kuc
07/17/2020, 2:10 PMDariusz Kuc
07/17/2020, 2:10 PMShane Myrick
07/17/2020, 6:18 PM