MCPcopy Create free account
hub / github.com/encoder-run/operator / ___InputValue

Method ___InputValue

pkg/graph/generated.go:8362–8406  ·  view source on GitHub ↗
(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue)

Source from the content-addressed store, hash-verified

8360var __InputValueImplementors = []string{"__InputValue"}
8361
8362func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
8363 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
8364
8365 out := graphql.NewFieldSet(fields)
8366 deferred := make(map[string]*graphql.FieldSet)
8367 for i, field := range fields {
8368 switch field.Name {
8369 case "__typename":
8370 out.Values[i] = graphql.MarshalString("__InputValue")
8371 case "name":
8372 out.Values[i] = ec.___InputValue_name(ctx, field, obj)
8373 if out.Values[i] == graphql.Null {
8374 out.Invalids++
8375 }
8376 case "description":
8377 out.Values[i] = ec.___InputValue_description(ctx, field, obj)
8378 case "type":
8379 out.Values[i] = ec.___InputValue_type(ctx, field, obj)
8380 if out.Values[i] == graphql.Null {
8381 out.Invalids++
8382 }
8383 case "defaultValue":
8384 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
8385 default:
8386 panic("unknown field " + strconv.Quote(field.Name))
8387 }
8388 }
8389 out.Dispatch(ctx)
8390 if out.Invalids > 0 {
8391 return graphql.Null
8392 }
8393
8394 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8395
8396 for label, dfs := range deferred {
8397 ec.processDeferredGroup(graphql.DeferredGroup{
8398 Label: label,
8399 Path: graphql.GetPath(ctx),
8400 FieldSet: dfs,
8401 Context: ctx,
8402 })
8403 }
8404
8405 return out
8406}
8407
8408var __SchemaImplementors = []string{"__Schema"}
8409

Calls 5

___InputValue_nameMethod · 0.95
___InputValue_typeMethod · 0.95
processDeferredGroupMethod · 0.95

Tested by

no test coverage detected