You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The best way to avoid this issue is to not use DeriveEnumType and create it like this
val Count = EnumType(
"Count",
values = List(
EnumValue("Zero", value = Counts.Zero),
EnumValue("One", value = Counts.One),
EnumValue("Two", value = Counts.Two),
EnumValue("Three", value = Counts.Three)
)
)
I made a scala Enum
Then created the same type for graph Ql schema
or
But found out that enum created was in LIFO so zero was assigned value 3 beacuse of this line
sangria/src/main/scala/sangria/macros/derive/DeriveEnumTypeMacro.scala
Line 126 in 0bf8053
When i run the introspection query i get three on the top of my enum values.
The text was updated successfully, but these errors were encountered: