Skip to content
New issue

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

Improved error messaging on generate failure #566

Open
cdaringe opened this issue Jan 21, 2022 · 1 comment
Open

Improved error messaging on generate failure #566

cdaringe opened this issue Jan 21, 2022 · 1 comment

Comments

@cdaringe
Copy link

Problem

$ gqty generate yields:

query "SELECT gf
        from
            graphql.field gf
        where
            gf.name = $1
            and gf.parent_type = $2
            and coalesce(gf.parent_arg_field_name, '') = coalesce($3, '')" returned more than one row

and exits with code 1.

Discussion

  • I'm not asking for help solving my particular issue, however
  • At the boundaries of operations where gqty is working w/ it's deps and asserting on fallible operations, some logging/messaging/etc could be helpful to isolate where/why the problem is occurring
@PabloSzx
Copy link
Member

PabloSzx commented Jan 21, 2022

gqty generate only does an introspection query, there isn't anything special, you can do introspection queries outside of gqty and also debug from there

clients that also do introspections https://altair.sirmuel.design/ https://github.com/graphql/graphiql https://github.com/graphql/graphiql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants