(ctx context.Context, field graphql.CollectedField, obj *model.RepositoryEmbeddings)
| 4029 | } |
| 4030 | |
| 4031 | func (ec *executionContext) _RepositoryEmbeddings_modelID(ctx context.Context, field graphql.CollectedField, obj *model.RepositoryEmbeddings) (ret graphql.Marshaler) { |
| 4032 | fc, err := ec.fieldContext_RepositoryEmbeddings_modelID(ctx, field) |
| 4033 | if err != nil { |
| 4034 | return graphql.Null |
| 4035 | } |
| 4036 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4037 | defer func() { |
| 4038 | if r := recover(); r != nil { |
| 4039 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4040 | ret = graphql.Null |
| 4041 | } |
| 4042 | }() |
| 4043 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4044 | ctx = rctx // use context from middleware stack in children |
| 4045 | return obj.ModelID, nil |
| 4046 | }) |
| 4047 | if err != nil { |
| 4048 | ec.Error(ctx, err) |
| 4049 | return graphql.Null |
| 4050 | } |
| 4051 | if resTmp == nil { |
| 4052 | if !graphql.HasFieldError(ctx, fc) { |
| 4053 | ec.Errorf(ctx, "must not be null") |
| 4054 | } |
| 4055 | return graphql.Null |
| 4056 | } |
| 4057 | res := resTmp.(string) |
| 4058 | fc.Result = res |
| 4059 | return ec.marshalNID2string(ctx, field.Selections, res) |
| 4060 | } |
| 4061 | |
| 4062 | func (ec *executionContext) fieldContext_RepositoryEmbeddings_modelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4063 | fc = &graphql.FieldContext{ |
no test coverage detected