Wrapper

caliban.wrappers.Wrapper
See theWrapper companion object
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.

Implementations can control the order at which this wrapper is executed by overriding the priority value. Setting a higher priority value will be executed first.

Attributes

Companion
object
Graph
Supertypes
trait GraphQLAspect[Nothing, R]
class Object
trait Matchable
class Any
Known subtypes
class CombinedWrapper[R]
class EffectfulWrapper[R]
object Empty.type
class FieldWrapper[R]
trait SimpleWrapper[R, E, A, Info]
trait ExecutionWrapper[R]
trait OverallWrapper[R]
trait ParsingWrapper[R]
Show all
Self type
Wrapper[R]

Members list

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]

Attributes

Inherited from:
GraphQLAspect

Concrete fields

val priority: Int