GraphQLScalar

data class GraphQLScalar(val scalar: String, val type: String, val converter: String) : Serializable

Holds mapping between custom GraphQL scalar type, corresponding Kotlin type and the converter that will be used to convert to/from raw JSON and Java type.

In order to limit the amount of plugin dependencies, we cannot use client-generator GraphQLScalar directly as it is declared as a compileOnly dependency (which will be available on the worker classpath only). We need to re-define the same object here so it will be accessible from build file configurations.

Constructors

Link copied to clipboard
constructor(scalar: String, type: String, converter: String)

Properties

Link copied to clipboard

Fully qualified class name of a custom converter used to convert to/from raw JSON and type

Link copied to clipboard

Custom scalar name.

Link copied to clipboard

Fully qualified class name of a custom scalar type, e.g. java.util.UUID