(s *gqlScaffolder, field string, args map[string]any)
| 357 | func (introEnumValue) typeName() string { return "__EnumValue" } |
| 358 | |
| 359 | func (x introEnumValue) resolve(s *gqlScaffolder, field string, args map[string]any) any { |
| 360 | switch field { |
| 361 | case "name": |
| 362 | return x.v.Name |
| 363 | case "description": |
| 364 | return optional(x.v.Description) |
| 365 | case "isDeprecated": |
| 366 | return deprecated(x.v.Directives) |
| 367 | case "deprecationReason": |
| 368 | return deprecationReason(x.v.Directives) |
| 369 | } |
| 370 | return nil |
| 371 | } |
| 372 | |
| 373 | type introDirective struct{ d *ast.DirectiveDefinition } |
| 374 |
nothing calls this directly
no test coverage detected