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 processingParsingWrapper
to wrap the query parsing onlyValidationWrapper
to wrap the query validation onlyExecutionWrapper
to wrap the query execution onlyFieldWrapper
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
- Known subtypes
-
class CombinedWrapper[R]class EffectfulWrapper[R]object Empty.typeclass FieldWrapper[R]trait IntrospectionWrapper[R]trait ExecutionWrapper[R]trait OverallWrapper[R]trait ParsingWrapper[R]trait ValidationWrapper[R]
- Self type
-
Wrapper[R]
Members list
In this article