GQLVariableDefinition

class GQLVariableDefinition(    val sourceLocation: SourceLocation? = null,     val name: String,     val type: GQLType,     val defaultValue: GQLValue?,     val directives: List<GQLDirective>) : GQLNode, GQLNamed, GQLHasDirectives

A variable definition is very similar to an InputValue definition except it doesn't have a description

Constructors

Link copied to clipboard
constructor(sourceLocation: SourceLocation? = null, name: String, type: GQLType, defaultValue: GQLValue?, directives: List<GQLDirective>)

Properties

Link copied to clipboard
open override val children: List<GQLNode>

The children of this node.

Link copied to clipboard
Link copied to clipboard
open override val directives: List<GQLDirective>
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val sourceLocation: SourceLocation?
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(    sourceLocation: SourceLocation? = this.sourceLocation,     name: String = this.name,     type: GQLType = this.type,     defaultValue: GQLValue? = this.defaultValue,     directives: List<GQLDirective> = this.directives): GQLVariableDefinition
Link copied to clipboard
open override fun copyWithNewChildrenInternal(container: NodeContainer): GQLNode

Internal-only. Copies this code using the given children

Link copied to clipboard
fun GQLNode.toUtf8(indent: String = " "): String
fun GQLNode.toUtf8(sink: BufferedSink, indent: String = " ")
fun GQLNode.toUtf8(file: File, indent: String = " ")
Link copied to clipboard
Link copied to clipboard
open override fun writeInternal(writer: SDLWriter)

Internal-only. Copies this code using the given children