We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following produces a different schema depending on the Scala version:
sealed trait Level1 object Level1 { implicit val schema: Schema[Any, Level1] = Schema.gen sealed trait Level2 extends Level1 object Level2 { implicit val schema: Schema[Any, Level2] = Schema.gen case class Level3(value: Boolean) extends Level2 object Level3 { implicit val schema: Schema[Any, Level3] = Schema.gen } } } case class Queries( level: Level1, ) object Queries { implicit val schema: Schema[Any, Queries] = Schema.gen } val schema = { val queries = Queries(level = Level1.Level2.Level3(false)) caliban.graphQL(RootResolver(queries)) }
Scala 2:
schema { query: Queries } union Level1 = Level3 type Level3 { value: Boolean! } type Queries { level: Level1! }
Scala 3:
schema { query: Queries } enum Level1 { Level2 } type Queries { level: Level1! }
The text was updated successfully, but these errors were encountered:
Fix #1989 & #1990
da6bd8a
Fix #1989 & #1990 (#1991)
e6ce4aa
kyri-petrou
Successfully merging a pull request may close this issue.
The following produces a different schema depending on the Scala version:
Scala 2:
Scala 3:
The text was updated successfully, but these errors were encountered: