MCPcopy Create free account
hub / github.com/vektah/gqlparser / parseOperationType

Method parseOperationType

parser/query.go:77–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func (p *parser) parseOperationType() Operation {
78 tok := p.next()
79 switch tok.Value {
80 case "query":
81 return Query
82 case "mutation":
83 return Mutation
84 case "subscription":
85 return Subscription
86 }
87 p.unexpectedToken(tok)
88 return ""
89}
90
91func (p *parser) parseVariableDefinitions() VariableDefinitionList {
92 var defs []*VariableDefinition

Callers 2

Calls 2

nextMethod · 0.95
unexpectedTokenMethod · 0.95

Tested by

no test coverage detected