Wrapper

object Wrapper
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

case class CombinedWrapper[-R](wrappers: List[Wrapper[R]]) extends Wrapper[R]

Wrapper that combines multiple wrappers.

Wrapper that combines multiple wrappers.

Value Params
wrappers

a list of wrappers

case class EffectfulWrapper[-R](wrapper: UIO[Wrapper[R]]) extends Wrapper[R]

A wrapper that requires an effect to be built. The effect will be run for each query.

A wrapper that requires an effect to be built. The effect will be run for each query.

Value Params
wrapper

an effect that builds a wrapper

Wrapper for the query execution stage. Wraps a function from an ExecutionRequest to a URIO[R, GraphQLResponse[CalibanError]].

Wrapper for the query execution stage. Wraps a function from an ExecutionRequest to a URIO[R, GraphQLResponse[CalibanError]].

abstract class FieldWrapper[-R](val wrapPureValues: Boolean) extends Wrapper[R]

Wrapper for each individual field. Takes a function from a ZQuery[R, Nothing, ResponseValue] and a FieldInfo and that returns a ZQuery[R, CalibanError, ResponseValue]. If wrapPureValues is true, every single field will be wrapped, which could have an impact on performances. If false, simple pure values will be ignored.

Wrapper for each individual field. Takes a function from a ZQuery[R, Nothing, ResponseValue] and a FieldInfo and that returns a ZQuery[R, CalibanError, ResponseValue]. If wrapPureValues is true, every single field will be wrapped, which could have an impact on performances. If false, simple pure values will be ignored.

trait IntrospectionWrapper[-R] extends Wrapper[R]

Wrapper for the introspection query processing. Takes a function from a ZIO[R, ExecutionError, __Introspection] and that returns a ZIO[R, ExecutionError, __Introspection].

Wrapper for the introspection query processing. Takes a function from a ZIO[R, ExecutionError, __Introspection] and that returns a ZIO[R, ExecutionError, __Introspection].

Wrapper for the whole query processing. Wraps a function from a request GraphQLRequest to a URIO[R, GraphQLResponse[CalibanError]].

Wrapper for the whole query processing. Wraps a function from a request GraphQLRequest to a URIO[R, GraphQLResponse[CalibanError]].

trait ParsingWrapper[-R] extends SimpleWrapper[R, ParsingError, Document, String]

Wrapper for the query parsing stage. Wraps a function from a query String to a ZIO[R, ParsingError, Document].

Wrapper for the query parsing stage. Wraps a function from a query String to a ZIO[R, ParsingError, Document].

sealed trait SimpleWrapper[-R, E, A, Info] extends Wrapper[R]

Wrapper for the query validation stage. Wraps a function from a Document to a ZIO[R, ValidationError, ExecutionRequest].

Wrapper for the query validation stage. Wraps a function from a Document to a ZIO[R, ValidationError, ExecutionRequest].

trait WrappingFunction[-R, E, A, Info]

WrappingFunction[R, E, A, Info] is an alias for a function that transforms an initial function from Info to ZIO[R, E, A] into a new function from Info to ZIO[R, E, A].

WrappingFunction[R, E, A, Info] is an alias for a function that transforms an initial function from Info to ZIO[R, E, A] into a new function from Info to ZIO[R, E, A].