We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In gql_node.go:
func (c *Client) Noder(ctx context.Context, id int, opts ...NodeOption) (_ Noder, err error) { defer func() { if IsNotFound(err) { err = multierror.Append(err, entgql.ErrNodeNotFound(id)) } }() table, err := c.newNodeOpts(opts).nodeType(ctx, id) if err != nil { return nil, err } return c.noder(ctx, table, id) } // ... func (c *Client) Noders(ctx context.Context, ids []int, opts ...NodeOption) ([]Noder, error) { // ... for i, id := range ids { if errors[i] == nil { if noders[i] != nil { continue } errors[i] = entgql.ErrNodeNotFound(id) } else if IsNotFound(errors[i]) { errors[i] = multierror.Append(errors[i], entgql.ErrNodeNotFound(id)) } ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i), ) graphql.AddError(ctx, errors[i]) } // ... }
Use errors.Join instead.
I think it's always there?
go run github.com/99designs/gqlgen version
go version
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
In gql_node.go:
What did you expect?
Use errors.Join instead.
Minimal graphql.schema and models to reproduce
I think it's always there?
versions
go run github.com/99designs/gqlgen version
? v0.17.45go version
? go version go1.22.2 darwin/arm64The text was updated successfully, but these errors were encountered: