Skip to content

code-gen: avoid generating duplicate types#894

Merged
nalchevanidze merged 1 commit intomorpheusgraphql:mainfrom
ners:duplicate-args
Mar 3, 2026
Merged

code-gen: avoid generating duplicate types#894
nalchevanidze merged 1 commit intomorpheusgraphql:mainfrom
ners:duplicate-args

Conversation

@ners
Copy link
Contributor

@ners ners commented Feb 26, 2026

  • derive Eq for AST types
  • nub the list of generated types before printing them

If a schema contains an interface with a field with multiple params, then the Args type for that field is generated for the interface, as well as each of the types that implement it. If the interface is implemented correctly, these types will all be the same.

- derive Eq for AST types
- nub the list of generated types before printing them

If a schema contains an interface with a field with multiple params,
then the Args type for that field is generated for the interface, as
well as each of the types that implement it. If the interface is
implemented correctly, these types will all be the same.
@nalchevanidze nalchevanidze added the 🐛 fix Label for versioning: Bug fix (patch bump) label Mar 3, 2026
@nalchevanidze nalchevanidze enabled auto-merge (squash) March 3, 2026 21:44
@nalchevanidze nalchevanidze merged commit ee1a09f into morpheusgraphql:main Mar 3, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 fix Label for versioning: Bug fix (patch bump)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants