ofClass

open fun <T : GRT?> ofClass(cls: Class<T>): Type<T>(source)

Create a Type from the provided Class.

Return

A Type instance for the given class

Parameters

cls

The Java class representing the GraphQL type

<T>

The GRT type parameter