SchemaType

sealed class SchemaType(source)

Internal representation of a schema-level type definition.

Inheritors

Types

Link copied to clipboard
data class Enum(val name: String, val values: List<String>) : SchemaType

An enum type defined in the schema.

Link copied to clipboard
data class InputField(val name: String, val type: GraphQLType, val defaultValue: String? = null)

A single field within an input object.

Link copied to clipboard
data class InputObject(val name: String, val fields: List<SchemaType.InputField>) : SchemaType

An input object type defined in the schema.

Link copied to clipboard
data class Scalar(val name: String) : SchemaType

A scalar type defined in the schema (custom scalar).

Properties

Link copied to clipboard
abstract val name: String

The schema type name.