GQLFragmentDefinition

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

Constructors

Link copied to clipboard
fun GQLFragmentDefinition(    sourceLocation: SourceLocation = SourceLocation.UNKNOWN,     name: String,     directives: List<GQLDirective>,     typeCondition: GQLNamedType,     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
open override val name: String
Link copied to clipboard
val selectionSet: GQLSelectionSet
Link copied to clipboard
open override val sourceLocation: SourceLocation
Link copied to clipboard
val typeCondition: GQLNamedType

Extensions

Link copied to clipboard
fun GQLFragmentDefinition.inferVariables(    schema: Schema,     fragments: Map<String, GQLFragmentDefinition>,     fieldsOnDisjointTypesMustMerge: Boolean): List<InferredVariable>

Infers the variables from a given fragment