Wrapper

sealed trait Wrapper[-R] extends GraphQLAspect[Nothing, R]

A Wrapper[-R] represents an extra layer of computation that can be applied on top of Caliban's query handling. There are different base types of wrappers:

  • OverallWrapper to wrap the whole query processing
  • ParsingWrapper to wrap the query parsing only
  • ValidationWrapper to wrap the query validation only
  • ExecutionWrapper to wrap the query execution only
  • FieldWrapper to wrap each field execution

It is also possible to combine wrappers using |+| and to build a wrapper effectfully with EffectfulWrapper.

Companion:
object
trait GraphQLAspect[Nothing, R]
class Object
trait Matchable
class Any
class FieldWrapper[R]
trait SimpleWrapper[R, E, A, Info]

Value members

Concrete methods

def apply[R1 <: R](that: GraphQL[R1]): GraphQL[R1]
def |+|[R1 <: R](that: Wrapper[R1]): Wrapper[R1]

Inherited methods

def @@[LowerR1, UpperR1 <: R](other: GraphQLAspect[LowerR1, UpperR1]): GraphQLAspect[LowerR1, UpperR1]
Inherited from:
GraphQLAspect