class JSONCoercing(val objectMapper: ObjectMapper) : Coercing<JsonNode, JsonNode>

GraphQL Coercing which maps JSON objects from / to JsonNode

Parameters

objectMapper

used for object parsing

Constructors

Link copied to clipboard
constructor(objectMapper: ObjectMapper)

Properties

Link copied to clipboard
private val objectMapper: ObjectMapper

Functions

Link copied to clipboard
open fun parseLiteral(input: @NonNull Any): @Nullable JsonNode?
open fun parseLiteral(input: Any?, variables: Map<String?, Any?>?): @Nullable JsonNode?
open override fun parseLiteral(input: Value<*>, variables: CoercedVariables, graphQLContext: GraphQLContext, locale: Locale): JsonNode
Link copied to clipboard
open fun parseValue(input: @NonNull Any): @Nullable JsonNode?
open override fun parseValue(input: Any, graphQLContext: GraphQLContext, locale: Locale): JsonNode
Link copied to clipboard
open fun serialize(dataFetcherResult: @NonNull Any): @Nullable JsonNode?
open override fun serialize(dataFetcherResult: Any, graphQLContext: GraphQLContext, locale: Locale): JsonNode
Link copied to clipboard
open fun valueToLiteral(input: @NonNull Any): @NonNull Value<*>
open override fun valueToLiteral(input: Any, graphQLContext: GraphQLContext, locale: Locale): Value<out Value<*>>