FieldWrapper

caliban.wrappers.Wrapper.FieldWrapper
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.

Attributes

Graph
Supertypes
trait Wrapper[R]
trait GraphQLAspect[Nothing, R]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def wrap[R1 <: R](query: ZQuery[R1, ExecutionError, ResponseValue], info: FieldInfo): ZQuery[R1, ExecutionError, ResponseValue]

Inherited methods

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

Attributes

Inherited from:
GraphQLAspect
def apply[R1 <: R](that: GraphQL[R1]): GraphQL[R1]

Attributes

Inherited from:
Wrapper
def |+|[R1 <: R](that: Wrapper[R1]): Wrapper[R1]

Attributes

Inherited from:
Wrapper

Concrete fields

val wrapPureValues: Boolean

Inherited fields

val priority: Int

Attributes

Inherited from:
Wrapper