GQLOperationDefinition

data class GQLOperationDefinition(    val sourceLocation: SourceLocation = SourceLocation.UNKNOWN,     val operationType: String,     val name: String?,     val variableDefinitions: List<GQLVariableDefinition>,     val directives: List<GQLDirective>,     val selectionSet: GQLSelectionSet,     val description: String?) : GQLDefinition, GQLDescribed

Constructors

Link copied to clipboard
fun GQLOperationDefinition(    sourceLocation: SourceLocation = SourceLocation.UNKNOWN,     operationType: String,     name: String?,     variableDefinitions: List<GQLVariableDefinition>,     directives: List<GQLDirective>,     selectionSet: GQLSelectionSet,     description: String?)

Functions

Link copied to clipboard
open override fun copyWithNewChildrenInternal(container: NodeContainer): GQLNode

Internal-only. Copies this code using the given children

Link copied to clipboard
open override fun writeInternal(writer: SDLWriter)

Internal-only. Copies this code using the given children

Properties

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

The children of this node.

Link copied to clipboard
open override val description: String?
Link copied to clipboard
val directives: List<GQLDirective>
Link copied to clipboard
val name: String?
Link copied to clipboard
val operationType: String
Link copied to clipboard
val selectionSet: GQLSelectionSet
Link copied to clipboard
open override val sourceLocation: SourceLocation
Link copied to clipboard
val variableDefinitions: List<GQLVariableDefinition>

Extensions

Link copied to clipboard
fun GQLOperationDefinition.rootTypeDefinition(schema: Schema): GQLTypeDefinition?
Link copied to clipboard
fun GQLOperationDefinition.validate(    schema: Schema,     fragments: Map<String, GQLFragmentDefinition>,     fieldsOnDisjointTypesMustMerge: Boolean = true): List<Issue>