-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[typescript-resolvers] Fix resolvers union types used in ResolversParentTypes
#9206
Conversation
…ersTypes in Omitted fields like previous implementation
🦋 Changeset detectedLatest commit: d886ebf 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 |
🚀 Snapshot Release (
|
Package | Version | Info |
---|---|---|
@graphql-codegen/cli |
3.3.0-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/visitor-plugin-common |
3.1.0-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-document-nodes |
3.0.3-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/gql-tag-operations |
2.0.3-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-operations |
3.0.3-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-resolvers |
3.2.0-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typed-document-node |
3.0.3-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript |
3.0.3-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/client-preset |
2.1.2-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/graphql-modules-preset |
3.1.2-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/plugin-helpers |
4.2.0-alpha-20230321083703-d886ebfb7 |
npm ↗︎ unpkg ↗︎ |
💻 Website PreviewThe latest changes are available as preview in: https://a1145403.graphql-code-generator.pages.dev |
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.
Not sure if I went overboard explaining this bug in this changeset. Happy to cut down if needed. 😀
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.
No, I think this is great!
Description
This fixes an unintentional change caused by #9069
Discussion: #9069 (comment)
Previously, objects with mappable fields are converted to Omit format that references its own type group or
ResolversTypes
orResolversParentTypes
e.g.In #9069, we extracted resolver union types to its own group:
This change creates an extra
ResolversUnionParentTypes
that is referenced byResolversParentTypes
to ensure backwards compatibility:Type of change
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: