CustomScalarAdapters

class CustomScalarAdapters : ExecutionContext.Element

A wrapper around a Map<String, Adapter> used to retrieve custom scalar adapters at runtime

Types

Builder
Link copied to clipboard
common
class Builder
Key
Link copied to clipboard
common
object Key : ExecutionContext.Key<CustomScalarAdapters>

Functions

fold
Link copied to clipboard
common
open override fun <R> fold(initial: R, operation: (R, ExecutionContext.Element) -> R): R
Accumulates entries of this context starting with initial value and applying operation from left to right to current accumulator value and each element of this context.
get
Link copied to clipboard
common
open operator override fun <E : ExecutionContext.Element> get(key: ExecutionContext.Key<E>): E?
Returns the element with the given key from this context or null.
minusKey
Link copied to clipboard
common
open override fun minusKey(key: ExecutionContext.Key<*>): ExecutionContext
Returns a context containing elements from this context, but without an element with the specified key.
newBuilder
Link copied to clipboard
common
fun newBuilder(): CustomScalarAdapters.Builder
plus
Link copied to clipboard
common
open operator fun plus(context: ExecutionContext): ExecutionContext
Returns a context containing elements from this context and elements from other context.
responseAdapterFor
Link copied to clipboard
common
fun <T : Any> responseAdapterFor(customScalar: CustomScalarType): Adapter<T>

Properties

key
Link copied to clipboard
common
open override val key: ExecutionContext.Key<*>
A key of this execution context element.