(ctx context.Context, field graphql.CollectedField, obj *model.SearchResult)
| 4249 | } |
| 4250 | |
| 4251 | func (ec *executionContext) _SearchResult_hash(ctx context.Context, field graphql.CollectedField, obj *model.SearchResult) (ret graphql.Marshaler) { |
| 4252 | fc, err := ec.fieldContext_SearchResult_hash(ctx, field) |
| 4253 | if err != nil { |
| 4254 | return graphql.Null |
| 4255 | } |
| 4256 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4257 | defer func() { |
| 4258 | if r := recover(); r != nil { |
| 4259 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4260 | ret = graphql.Null |
| 4261 | } |
| 4262 | }() |
| 4263 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4264 | ctx = rctx // use context from middleware stack in children |
| 4265 | return obj.Hash, nil |
| 4266 | }) |
| 4267 | if err != nil { |
| 4268 | ec.Error(ctx, err) |
| 4269 | return graphql.Null |
| 4270 | } |
| 4271 | if resTmp == nil { |
| 4272 | if !graphql.HasFieldError(ctx, fc) { |
| 4273 | ec.Errorf(ctx, "must not be null") |
| 4274 | } |
| 4275 | return graphql.Null |
| 4276 | } |
| 4277 | res := resTmp.(string) |
| 4278 | fc.Result = res |
| 4279 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 4280 | } |
| 4281 | |
| 4282 | func (ec *executionContext) fieldContext_SearchResult_hash(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4283 | fc = &graphql.FieldContext{ |
no test coverage detected