Colton Idle
04/27/2023, 8:28 PMpublic enum class MyType(
public val rawValue: String,
) {
foo("foo"),
bar("bar"),
then how best to convert that to my enum in my domain which looks identical to that. Or do I have to manually connect the dots?Stylianos Gakis
04/27/2023, 9:34 PMsealedClassesForEnumsMatching
so that you generate sealed classes instead of enums, if that feels easier on your end
• Adding a new type to the enum is considered a backwards compatible change for a GraphQL schema, so be sure to consider the “else” case and handle it appropriately, don’t throw on that else.annsofi
04/28/2023, 7:00 AMannsofi
04/28/2023, 7:01 AMwhen
on the API model to just map to the correct domain modelStylianos Gakis
04/28/2023, 8:24 AMannsofi
04/28/2023, 9:08 AMvalueOf
on thatStylianos Gakis
04/28/2023, 9:25 AMannsofi
04/28/2023, 9:28 AMColton Idle
04/28/2023, 3:11 PMColton Idle
04/28/2023, 3:11 PMStylianos Gakis
04/28/2023, 6:18 PMColton Idle
04/28/2023, 6:26 PMColton Idle
04/28/2023, 6:27 PMStylianos Gakis
04/28/2023, 7:21 PMColton Idle
04/28/2023, 9:04 PM