...

Source file src/github.com/vektah/gqlparser/v2/ast/fragment.go

Documentation: github.com/vektah/gqlparser/v2/ast

     1  package ast
     2  
     3  type FragmentSpread struct {
     4  	Name       string
     5  	Directives DirectiveList
     6  
     7  	// Require validation
     8  	ObjectDefinition *Definition
     9  	Definition       *FragmentDefinition
    10  
    11  	Position *Position `dump:"-"`
    12  	Comment  *CommentGroup
    13  }
    14  
    15  type InlineFragment struct {
    16  	TypeCondition string
    17  	Directives    DirectiveList
    18  	SelectionSet  SelectionSet
    19  
    20  	// Require validation
    21  	ObjectDefinition *Definition
    22  
    23  	Position *Position `dump:"-"`
    24  	Comment  *CommentGroup
    25  }
    26  
    27  type FragmentDefinition struct {
    28  	Name string
    29  	// Note: fragment variable definitions are experimental and may be changed
    30  	// or removed in the future.
    31  	VariableDefinition VariableDefinitionList
    32  	TypeCondition      string
    33  	Directives         DirectiveList
    34  	SelectionSet       SelectionSet
    35  
    36  	// Require validation
    37  	Definition *Definition
    38  
    39  	Position *Position `dump:"-"`
    40  	Comment  *CommentGroup
    41  }
    42  

View as plain text