Packages

p

caliban

schema

package schema

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. trait ArgBuilder[T] extends AnyRef

    Typeclass that defines how to build an argument of type T from an input caliban.InputValue.

    Typeclass that defines how to build an argument of type T from an input caliban.InputValue. Every type that can be passed as an argument needs an instance of ArgBuilder.

    Annotations
    @implicitNotFound("""Cannot find an ArgBuilder for type ${T}.
    Caliban derives an ArgBuilder automatically for basic Scala types, case classes and sealed traits, but
    you need to manually provide an implicit ArgBuilder for other types that could be nested in ${T}.
    See https://ghostdogpr.github.io/caliban/docs/schema.html for more information.
    """
    )
  2. trait DerivationSchema[R] extends AnyRef
  3. trait GenericSchema[R] extends DerivationSchema[R]
  4. case class PureStep(value: ResponseValue) extends Step[Any] with ReducedStep[Any] with Product with Serializable

    Represents the step of getting a pure response value without any effect.

    Represents the step of getting a pure response value without any effect. PureStep is both a Step and a ReducedStep to avoid boxing/unboxing pure values during step reduction.

    value

    the response value to return for that step

  5. sealed trait ReducedStep[-R] extends AnyRef
  6. case class RootSchema[-R](query: Operation[R], mutation: Option[Operation[R]], subscription: Option[Operation[R]]) extends Product with Serializable
  7. case class RootType(queryType: __Type, mutationType: Option[__Type], subscriptionType: Option[__Type]) extends Product with Serializable
  8. trait Schema[-R, T] extends AnyRef

    Typeclass that defines how to map the type T to the according GraphQL concepts: how to introspect it and how to resolve it.

    Typeclass that defines how to map the type T to the according GraphQL concepts: how to introspect it and how to resolve it. R is the ZIO environment required by the effects in the schema (Any if nothing required).

    Annotations
    @implicitNotFound("""Cannot find a Schema for type ${T}.
    Caliban derives a Schema automatically for basic Scala types, case classes and sealed traits, but
    you need to manually provide an implicit Schema for other types that could be nested in ${T}.
    If you use a custom type as an argument, you also need to provide an implicit ArgBuilder for that type.
    See https://ghostdogpr.github.io/caliban/docs/schema.html for more information.
    """
    )
  9. sealed trait Step[-R] extends AnyRef
  10. trait SubscriptionSchema[-T] extends AnyRef

    Typeclass used to guarantee that the Subscriptions type is either Unit or a case class with zio.stream.ZStream for fields.

Value Members

  1. object Annotations
  2. object ArgBuilder
  3. object ReducedStep
  4. object RootSchema extends Serializable
  5. object Schema extends GenericSchema[Any]
  6. object Step
  7. object SubscriptionSchema
  8. object Types

Ungrouped