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

Look into GraphQL Codegen config improvements #1426

Open
bchu1 opened this issue Dec 24, 2024 · 0 comments
Open

Look into GraphQL Codegen config improvements #1426

bchu1 opened this issue Dec 24, 2024 · 0 comments
Labels
frontend maintenance severity - low little impact to the overall functionality of the Portal (e.g., wrong sized button)

Comments

@bchu1
Copy link
Contributor

bchu1 commented Dec 24, 2024

https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-operations

Worth looking into:

  • avoidOptionals - remove unnecessary ?:s on fields. It's also possible to not apply this to inputs if we don't want to also change maybeValue to T | undefined (otherwise it'll require input objects to specify all unused fields as null).
  • immutableTypes
  • maybeValue - changing to T | undefined in conjunction with avoidOptionals can allow us to remove nulls from the codebase.
@bchu1 bchu1 added frontend severity - low little impact to the overall functionality of the Portal (e.g., wrong sized button) maintenance labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend maintenance severity - low little impact to the overall functionality of the Portal (e.g., wrong sized button)
Projects
None yet
Development

No branches or pull requests

1 participant