(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive)
| 4958 | } |
| 4959 | |
| 4960 | func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { |
| 4961 | fc, err := ec.fieldContext___Directive_name(ctx, field) |
| 4962 | if err != nil { |
| 4963 | return graphql.Null |
| 4964 | } |
| 4965 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4966 | defer func() { |
| 4967 | if r := recover(); r != nil { |
| 4968 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4969 | ret = graphql.Null |
| 4970 | } |
| 4971 | }() |
| 4972 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4973 | ctx = rctx // use context from middleware stack in children |
| 4974 | return obj.Name, nil |
| 4975 | }) |
| 4976 | if err != nil { |
| 4977 | ec.Error(ctx, err) |
| 4978 | return graphql.Null |
| 4979 | } |
| 4980 | if resTmp == nil { |
| 4981 | if !graphql.HasFieldError(ctx, fc) { |
| 4982 | ec.Errorf(ctx, "must not be null") |
| 4983 | } |
| 4984 | return graphql.Null |
| 4985 | } |
| 4986 | res := resTmp.(string) |
| 4987 | fc.Result = res |
| 4988 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 4989 | } |
| 4990 | |
| 4991 | func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4992 | fc = &graphql.FieldContext{ |
no test coverage detected