(s *gqlScaffolder, field string, args map[string]any)
| 321 | func (introInputValue) typeName() string { return "__InputValue" } |
| 322 | |
| 323 | func (x introInputValue) resolve(s *gqlScaffolder, field string, args map[string]any) any { |
| 324 | switch field { |
| 325 | case "name": |
| 326 | return x.name |
| 327 | case "description": |
| 328 | return optional(x.description) |
| 329 | case "type": |
| 330 | return introType{x.typ} |
| 331 | case "defaultValue": |
| 332 | if x.defaultValue == nil { |
| 333 | return nil |
| 334 | } |
| 335 | return x.defaultValue.String() |
| 336 | case "isDeprecated": |
| 337 | return deprecated(x.directives) |
| 338 | case "deprecationReason": |
| 339 | return deprecationReason(x.directives) |
| 340 | } |
| 341 | return nil |
| 342 | } |
| 343 | |
| 344 | func introArgs(defs ast.ArgumentDefinitionList, args map[string]any) []introObject { |
| 345 | includeDeprecated, _ := args["includeDeprecated"].(bool) |
nothing calls this directly
no test coverage detected