caliban
package caliban
- Alphabetic
- Public
- All
Type Members
-
sealed
trait
CalibanError extends Throwable
The base type for all Caliban errors.
-
trait
GraphQL[-R, -Q, -M, -S, +E] extends AnyRef
A
GraphQL[R, Q, M, S, E]
represents a GraphQL interpreter for a query typeQ
, a mutation typeM
and a subscription typeS
, whose execution requires a ZIO environment of typeR
and can fail with anE
.A
GraphQL[R, Q, M, S, E]
represents a GraphQL interpreter for a query typeQ
, a mutation typeM
and a subscription typeS
, whose execution requires a ZIO environment of typeR
and can fail with anE
.It is intended to be created only once, typically when you start your server. The introspection schema will be generated when this class is instantiated.
-
case class
GraphQLResponse[+E](data: ResponseValue, errors: List[E]) extends Product with Serializable
Represents the result of a GraphQL query, containing a data object and a list of errors.
- sealed trait InputValue extends AnyRef
- sealed trait ResponseValue extends AnyRef
-
case class
RootResolver[+Query, +Mutation, +Subscription](queryResolver: Query, mutationResolver: Option[Mutation], subscriptionResolver: Option[Subscription]) extends Product with Serializable
A
root resolver
contains resolvers for the 3 types of operations allowed in GraphQL: queries, mutations and subscriptions.A
root resolver
contains resolvers for the 3 types of operations allowed in GraphQL: queries, mutations and subscriptions.A
resolver
is a simple value of the case class describing the API.It's mandatory to have a query resolver, the 2 others are optional.
- sealed trait Value extends InputValue with ResponseValue
Value Members
- object CalibanError extends Serializable
- object GraphQL
- object InputValue
- object Macros
- object Rendering
- object ResponseValue
- object RootResolver extends Serializable
- object Value