TypeIntrospection

data class TypeIntrospection(val type: String, val parent: QueryElement?) : QueryElement, Introspection

Represents a __type from the GraphQL introspection API.

See also

Constructors

Link copied to clipboard
constructor(type: String, parent: QueryElement?)

Properties

Link copied to clipboard
open override val parent: QueryElement?
Link copied to clipboard

The type to get information on.

Functions

Link copied to clipboard
fun field(name: String, init: Field.() -> Unit = {}): Field

Creates and register a Field as a child of the current QueryElement

Link copied to clipboard
open override fun toString(): String

Generates the GraphQl string for the type introspection.

Link copied to clipboard
fun typename()

Gets the name of the current type of the current QueryElement. Equivalent to __typename.