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

Method ___InputValue_defaultValue

pkg/graph/generated.go:5798–5824  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue)

Source from the content-addressed store, hash-verified

5796}
5797
5798func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
5799 fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field)
5800 if err != nil {
5801 return graphql.Null
5802 }
5803 ctx = graphql.WithFieldContext(ctx, fc)
5804 defer func() {
5805 if r := recover(); r != nil {
5806 ec.Error(ctx, ec.Recover(ctx, r))
5807 ret = graphql.Null
5808 }
5809 }()
5810 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5811 ctx = rctx // use context from middleware stack in children
5812 return obj.DefaultValue, nil
5813 })
5814 if err != nil {
5815 ec.Error(ctx, err)
5816 return graphql.Null
5817 }
5818 if resTmp == nil {
5819 return graphql.Null
5820 }
5821 res := resTmp.(*string)
5822 fc.Result = res
5823 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5824}
5825
5826func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5827 fc = &graphql.FieldContext{

Callers 1

___InputValueMethod · 0.95

Tested by

no test coverage detected