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

(fix) Field args that has defaultValue should not be mandatory. #675

Merged
merged 3 commits into from
Feb 27, 2022

Conversation

ualtinok
Copy link
Contributor

Per GraphQL spec(418), non-null object fields can be omitted if they supply a default value:

graphql/graphql-spec#418

@vercel
Copy link

vercel bot commented Feb 25, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/gqty/gqty/EWj586FGCLrpB5ibxRsP3TZ9eQ6u
✅ Preview: https://gqty-git-fork-ualtinok-main-gqty.vercel.app

Copy link
Member

@PabloSzx PabloSzx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look great! thank you, can you add a small test in packages/cli/test/generate.test.ts please

@ualtinok
Copy link
Contributor Author

Added tests

Copy link
Member

@PabloSzx PabloSzx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look good to go, thank you @ualtinok, can you add a minor changeset for @gqty/cli? you can do a quick read about this here: https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md

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

Successfully merging this pull request may close these issues.

2 participants