Open fokot opened 7 years ago
I think it is related to #261. Haven't investigated it in depth yet. But I think in this case it might be related to the fact that you are using a type alias. Maybe you can also check the macro, looks like it needs more code to analyse the type parameter and it's shape: https://github.com/sangria-graphql/sangria/blob/master/src/main/scala/sangria/macros/derive/DeriveObjectTypeMacro.scala#L22
Yes as I see the code problem is in Type.companion
in scala.reflect.api
. It doesn't return companion object for type aliases: https://github.com/scala/scala/blob/2.12.x/src/reflect/scala/reflect/api/Types.scala#L135
But I never worked with macros so I can't help here much
Thanks for the hint! I will check it out
I would like to have this code work
It fails on
Circe decoders are auto generated