Initial QSfera import
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
package ast
|
||||
|
||||
type Operation string
|
||||
|
||||
const (
|
||||
Query Operation = "query"
|
||||
Mutation Operation = "mutation"
|
||||
Subscription Operation = "subscription"
|
||||
)
|
||||
|
||||
type OperationDefinition struct {
|
||||
Operation Operation
|
||||
Name string
|
||||
VariableDefinitions VariableDefinitionList
|
||||
Directives DirectiveList
|
||||
SelectionSet SelectionSet
|
||||
Position *Position `dump:"-" json:"-"`
|
||||
Comment *CommentGroup
|
||||
}
|
||||
|
||||
type VariableDefinition struct {
|
||||
Variable string
|
||||
Type *Type
|
||||
DefaultValue *Value
|
||||
Directives DirectiveList
|
||||
Position *Position `dump:"-" json:"-"`
|
||||
Comment *CommentGroup
|
||||
|
||||
// Requires validation
|
||||
Definition *Definition
|
||||
Used bool `dump:"-"`
|
||||
}
|
||||
Reference in New Issue
Block a user