Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MyErrorPresenter graphql.ErrorPresenterFunc = func(ctx context.Context, err error) *gqlerror.Error { errGql := graphql.DefaultErrorPresenter(ctx, err) if strings.Contains(err.Error(), smodel.ErrBase+smodel.ErrSep) { errMsg := err.Error()[strings.LastIndex(err.Error(), smodel.ErrBase+smodel.ErrSep):] errGql = graphql.DefaultErrorPresenter(ctx, errors.New(errMsg)) } return errGql }
Functions ¶
This section is empty.
Types ¶
type Graphql ¶
type Graphql struct {
// contains filtered or unexported fields
}
Graphql is the GraphQL API for the application
func NewGraphql ¶
func NewGraphql(qh pp_query.QueryPort, ch pp_command.CommandPort) *Graphql
NewGraphql creates a new instance of Graphql
Click to show internal directories.
Click to hide internal directories.