mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 06:14:46 +01:00
* Add gql client generation files * Update dependencies * Add stash-box client generation to the makefile * Move scraped scene object matchers to models * Add stash-box to scrape with dropdown * Add scrape scene from fingerprint in UI
29 lines
619 B
Go
29 lines
619 B
Go
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:"-"`
|
|
}
|
|
|
|
type VariableDefinition struct {
|
|
Variable string
|
|
Type *Type
|
|
DefaultValue *Value
|
|
Position *Position `dump:"-"`
|
|
|
|
// Requires validation
|
|
Definition *Definition
|
|
Used bool `dump:"-"`
|
|
}
|