Coercing

interface Coercing<T>

See https://www.graphql.de/blog/scalars-in-depth/

Inheritors

Functions

Link copied to clipboard
abstract fun deserialize(value: ExternalValue): T

Deserializes from an external value (typically JSON) to an internal value (Kotlin).

Link copied to clipboard
abstract fun parseLiteral(value: GQLValue): T

Deserializes from a GraphQL value to an internal value (Kotlin).

Link copied to clipboard
abstract fun serialize(internalValue: T): ExternalValue

Serializes from an internal value (Kotlin) to an external value (typically JSON).