Hi fellows Im using kgraphql and I have the following structure on my models: ```data class A ( ...
e
Hi fellows Im using kgraphql and I have the following structure on my models:
Copy code
data class A (
    val id: String,
    val b: B
)

enum class B{
    AA, BB, CC
}
Trying to run the app I have the following error:
Exception in thread "main" com.apurebase.kgraphql.schema.SchemaException: Cannot handle enum class class com.example.B as Object type
. Does someone know how to solve it?
d
have you tried asking this in #kgraphql?
e
I didn’t know about this, thank ill ask it there
a
I had the same problem and I fixed it by doing...
Copy code
fun SchemaBuilder.someSchema() {
    enum<B>()
    
    mutation("someMutationThatUsesEnum") {
        ...
It's funny I found this slack channel based on that search and was sad I couldn't find the answer so I am sharing here incase it helps someone in the future.