GQLFragmentDefinition

data class GQLFragmentDefinition(sourceLocation: SourceLocation, name: String, directives: List<GQLDirective>, typeCondition: GQLNamedType, selectionSet: GQLSelectionSet, description: String?) : GQLDefinition, GQLNamed, GQLDescribed

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.
description
Link copied to clipboard
open override val description: String?
directives
Link copied to clipboard
val directives: List<GQLDirective>
name
Link copied to clipboard
open override val name: String
selectionSet
Link copied to clipboard
val selectionSet: GQLSelectionSet
sourceLocation
Link copied to clipboard
open override val sourceLocation: SourceLocation
typeCondition
Link copied to clipboard
val typeCondition: GQLNamedType

Extensions

inferVariables
Link copied to clipboard
@ApolloExperimental()
fun GQLFragmentDefinition.inferVariables(schema: Schema, fragments: Map<String, GQLFragmentDefinition>): List<VariableReference>
Infers the variables from a given fragment