Skip to content

Commit

Permalink
graphql/handler: replace internal executor type
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Feb 19, 2020
1 parent 8fa26ce commit c16a77c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 309 deletions.
4 changes: 4 additions & 0 deletions graphql/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ func (e *Executor) DispatchError(ctx context.Context, list gqlerror.List) *graph
return resp
}

func (e *Executor) PresentRecoveredError(ctx context.Context, err interface{}) *gqlerror.Error {
return e.errorPresenter(ctx, e.recoverFunc(ctx, err))
}

func (e *Executor) SetQueryCache(cache graphql.Cache) {
e.queryCache = cache
}
Expand Down
2 changes: 1 addition & 1 deletion graphql/executor/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/99designs/gqlgen/graphql"
)

// ExtensionList manages a slice of graphql extensions.
// ExtensionList manages a slice of graphql extensions validated against a schema.
type ExtensionList struct {
es graphql.ExecutableSchema
extensions []graphql.HandlerExtension
Expand Down
219 changes: 0 additions & 219 deletions graphql/handler/executor.go

This file was deleted.

Loading

0 comments on commit c16a77c

Please sign in to comment.