GQLVariableDefinition

data class GQLVariableDefinition(sourceLocation: SourceLocation, name: String, type: GQLType, defaultValue: GQLValue?, directives: List<GQLDirective>) : GQLNode

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

Constructors

GQLVariableDefinition
Link copied to clipboard
fun GQLVariableDefinition(sourceLocation: SourceLocation = SourceLocation.UNKNOWN, name: String, type: GQLType, defaultValue: GQLValue?, directives: List<GQLDirective>)

Functions

copyWithNewChildrenInternal
Link copied to clipboard
open override fun copyWithNewChildrenInternal(container: NodeContainer): GQLNode
Internal-only.
writeInternal
Link copied to clipboard
open override fun writeInternal(writer: SDLWriter)
Internal-only.

Properties

children
Link copied to clipboard
open override val children: List<GQLNode>
The children of this node.
defaultValue
Link copied to clipboard
val defaultValue: GQLValue?
directives
Link copied to clipboard
val directives: List<GQLDirective>
name
Link copied to clipboard
val name: String
sourceLocation
Link copied to clipboard
open override val sourceLocation: SourceLocation
type
Link copied to clipboard
val type: GQLType