MCPcopy Create free account
hub / github.com/cli/cli / resolve

Method resolve

script/ghmock/introspection.go:295–311  ·  view source on GitHub ↗
(s *gqlScaffolder, field string, args map[string]any)

Source from the content-addressed store, hash-verified

293func (introField) typeName() string { return "__Field" }
294
295func (x introField) resolve(s *gqlScaffolder, field string, args map[string]any) any {
296 switch field {
297 case "name":
298 return x.f.Name
299 case "description":
300 return optional(x.f.Description)
301 case "args":
302 return introArgs(x.f.Arguments, args)
303 case "type":
304 return introType{x.f.Type}
305 case "isDeprecated":
306 return deprecated(x.f.Directives)
307 case "deprecationReason":
308 return deprecationReason(x.f.Directives)
309 }
310 return nil
311}
312
313type introInputValue struct {
314 name string

Callers

nothing calls this directly

Calls 4

optionalFunction · 0.85
introArgsFunction · 0.85
deprecatedFunction · 0.85
deprecationReasonFunction · 0.85

Tested by

no test coverage detected