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
If inputs are more than 2 levels deep not all types are returned. In Queries it is ok (I mean output types).
Example graphiql error:
"message": "Invalid or incomplete schema, unknown type: EngineInput. Ensure that a full introspection query is used in order to build a client schema.",
Example schema:
import caliban.{CalibanError, GraphQL, RootResolver}
import caliban.GraphQL.graphQL
import zio.Task
object NestedTest {
case class Engine(serial: String, fuel: String)
case class SpaceShip(serial: String, name: String, engine: Engine)
case class Character(name: String, spaceShip: SpaceShip)
case class Queries(
// character: SpaceShip => Task[Character] // works
character: Character => Task[Character] // does not work
)
val interpreter: GraphQL[Any, Queries, Unit, Unit, CalibanError] =
graphQL[Any, Queries, Unit, Unit](
RootResolver(Queries(_ => ???))
)
}
The text was updated successfully, but these errors were encountered:
fokot
changed the title
Nested inputs
Nested inputs do not return all types
Nov 29, 2019
If inputs are more than 2 levels deep not all types are returned. In Queries it is ok (I mean output types).
Example graphiql error:
Example schema:
The text was updated successfully, but these errors were encountered: