kgraphql / com.apurebase.kgraphql.schema.scalar

Package com.apurebase.kgraphql.schema.scalar

Types

BooleanScalarCoercion

interface BooleanScalarCoercion<T> : ScalarCoercion<T, Boolean>

DoubleScalarCoercion

interface DoubleScalarCoercion<T> : ScalarCoercion<T, Double>

IntScalarCoercion

interface IntScalarCoercion<T> : ScalarCoercion<T, Int>

LongScalarCoercion

interface LongScalarCoercion<T> : ScalarCoercion<T, Long>

ScalarCoercion

Scalar resolves to a single scalar object, and can't have sub-selections in the request. ScalarSupport defines strategy of handling supported scalar type.

interface ScalarCoercion<Scalar, Raw>

StringScalarCoercion

interface StringScalarCoercion<T> : ScalarCoercion<T, String>

Functions

deserializeScalar

fun <T : Any> deserializeScalar(scalar: Scalar<T>, value: ValueNode): T

serializeScalar

fun <T> serializeScalar(jsonNodeFactory: JsonNodeFactory, scalar: Scalar<*>, value: T, executionNode: Execution): JsonValueNode
fun <T> serializeScalar(scalar: Scalar<*>, value: T, executionNode: Execution): JsonElement