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

Performance issue in getting enum with huge schema #47

Closed
3 tasks done
deathemperor opened this issue Jan 30, 2024 · 0 comments · Fixed by #53
Closed
3 tasks done

Performance issue in getting enum with huge schema #47

deathemperor opened this issue Jan 30, 2024 · 0 comments · Fixed by #53

Comments

@deathemperor
Copy link
Contributor

deathemperor commented Jan 30, 2024

Describe the bug

Hello again! It's me with the huge schema generated by Hasura. I'm trying to extract enum type

type CopayMechanismEnum = ReturnType<typeof graphql.scalar<'plan_copay_mechanisms_enum'>>;

Typescript is unable to show hover texts, usage of this type is a no either: assigning any variable to this type won't get any typeahead suggestions either

Reproduction

https://github.com/deathemperor/gql.tada-reproducible/commit/c746ce8034997bef655c1f7fd59456a2cf2dbd67

gql.tada version

gql.tada 1.2.0

Validations

  • I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
  • Read the docs.
  • Follow our Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants