-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: allow deferredFields works with fragment #9565
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
Conversation
|
1399d0f to
3a7bd84
Compare
|
Any news about this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about the delays!
lgtm
|
Hi! any news regarding this PR? |
|
Still waiting for approval! @beerose there is something I can do? |
|
@2snEM6 @beerose @slaytanic @dittos let me know if I can do something about this PR, otherwise I'll close it! |
|
Hi @ludusrusso , let me take a look 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix the immediate problem, thank you!
Side note: I'm not 100% familiar with fragments but I think there are also a few different variants for fragment that may need the same treatment? 🤔
e.g.
- Inline fragment
something {
... on Foo @defer {
id
}
}- and inline fragment without type
something {
... @defer {
id
}
}This can be done later if it's truly a problem though.
🚨 IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Description
With this PR,
__meta__.deferredFieldsare generated also in case of fragment with deferred nested fragment, this will fix an issue withisFragmentReadythat returns always true in that caseRelated #9564
Type of change
Please delete options that are not relevant.
Screenshots/Sandbox (if appropriate/relevant):
Adding links to sandbox or providing screenshots can help us understand more about this PR and take action on it as appropriate
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Environment:
@graphql-codegen/...:Checklist: