-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[operations] CODEGEN-784 - Fix Apollo @unmask fragmentRefs #10302
Conversation
🦋 Changeset detectedLatest commit: 5ef68e7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
💻 Website PreviewThe latest changes are available as preview in: https://76ad1af2.graphql-code-generator.pages.dev |
🚀 Snapshot Release (
|
Package | Version | Info |
---|---|---|
@graphql-codegen/visitor-plugin-common |
5.7.1-alpha-20250221122145-5ef68e775c396313780244f87714d33191a46522 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-document-nodes |
4.0.15-alpha-20250221122145-5ef68e775c396313780244f87714d33191a46522 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/gql-tag-operations |
4.0.16-alpha-20250221122145-5ef68e775c396313780244f87714d33191a46522 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-operations |
4.5.1-alpha-20250221122145-5ef68e775c396313780244f87714d33191a46522 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-resolvers |
4.4.4-alpha-20250221122145-5ef68e775c396313780244f87714d33191a46522 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typed-document-node |
5.0.15-alpha-20250221122145-5ef68e775c396313780244f87714d33191a46522 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript |
4.1.5-alpha-20250221122145-5ef68e775c396313780244f87714d33191a46522 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/client-preset |
4.6.4-alpha-20250221122145-5ef68e775c396313780244f87714d33191a46522 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/graphql-modules-preset |
4.0.15-alpha-20250221122145-5ef68e775c396313780244f87714d33191a46522 |
npm ↗︎ unpkg ↗︎ |
@@ -548,6 +548,7 @@ export class SelectionSetToObject<Config extends ParsedDocumentsConfig = ParsedD | |||
selectionNodes = [...selectionNodes]; | |||
let inlineFragmentConditional = false; | |||
for (const selectionNode of selectionNodes) { | |||
// 1. Handle Field or Directtives selection nodes |
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.
// 1. Handle Field or Directtives selection nodes | |
// 1. Handle Field or Directives selection nodes |
Noticed a small typo 🙂
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.
I know my approval doesn't mean much here, but this looks right to me. Thanks so much for helping out! Much simpler than I realized this would be 🙌
Description
When using Apollo masking features, an
@unmask
fragment is the same as inlined i.e.$fragmentRefs
Reference: #10299
Type of change
Please delete options that are not relevant.
How Has This Been Tested?