Skip to content

Conversation

@eddeee888
Copy link
Collaborator

Description

Previously, Input were being generated inline, even if importSchemaTypesFrom is used.
This PR fixes this generation behaviour to match Enum's:

  • if importSchemaTypesFrom is used, do not generate in the current file
  • still gets generated when generatesOperationTypes: true is used (so Input can be shared)

Related #10496

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Unit test
  • Integration test

@changeset-bot
Copy link

changeset-bot bot commented Jan 18, 2026

🦋 Changeset detected

Latest commit: fb86aff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphql-codegen/typescript-operations Patch

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

@github-actions
Copy link
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-codegen/cli 6.1.1-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/introspection 5.0.1-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 7.0.0-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 5.0.8-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 5.1.3-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 6.0.0-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 6.0.0-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 6.1.6-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 6.0.0-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 6.0.0-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 5.1.3-alpha-20260118123127-fb86aff4c127e4aaee069dc04131d5ef60bf76e1 npm ↗︎ unpkg ↗︎

@eddeee888 eddeee888 merged commit c0bdb72 into master-next Jan 18, 2026
19 checks passed
@eddeee888 eddeee888 deleted the master-next-fix-external-import-input branch January 18, 2026 12:39
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