Type

interface Type<T : GRT?>(source)

A Type describes static properties of a GraphQL type.

Framework-created types compare by GraphQL name and Java Class, including its class loader.

Parameters

<T>

The GRT (GraphQL Runtime Type) that this Type represents

Functions

Link copied to clipboard
abstract fun getJavaClass(): Class<out T>
Returns the Java Class that describes values for this type.
Link copied to clipboard
abstract fun getName(): String
Returns the GraphQL name of this type.
Link copied to clipboard
open fun <T : GRT?> ofClass(cls: Class<T>): Type<T>
Create a Type from the provided Class.