Stylianos Gakis
05/18/2022, 3:47 PMenum CrossSellType {FOO \n BAR} . Apollo {} is configured with sealedClassesForEnumsMatching.set(listOf("CrossSellType", ...)) and then the generated code looks like this "type" to resolve("type", CrossSellType.type.notNull(), knownValues().map { it.name }), .
Problem is, knownValues() returns a list of <CrossSellType> which is in fact a sealed class now, not an enum, so .name isn’t resolving, it’s red.
On Apollo 3.3.0 rn, can’t really test earlier versions as a lot of other things will be red.Stylianos Gakis
05/18/2022, 3:49 PMsealedClassesForEnumsMatching does produce a TestBuilder without errors.bod
05/18/2022, 3:49 PMbod
05/18/2022, 3:58 PMbod
05/18/2022, 4:04 PMrawValue should be used in that casebod
05/18/2022, 4:11 PMStylianos Gakis
05/18/2022, 4:13 PMrawValue is available for the Enums as wellbod
05/18/2022, 5:15 PMStylianos Gakis
05/18/2022, 7:23 PMbod
05/18/2022, 7:29 PMmain branch, so they should be available.