Skip to content

skip duplicate input and interface types when generating projections#877

Merged
iuliiasobolevska merged 1 commit intomasterfrom
fix/duplicate-input-projections
Sep 17, 2025
Merged

skip duplicate input and interface types when generating projections#877
iuliiasobolevska merged 1 commit intomasterfrom
fix/duplicate-input-projections

Conversation

@iuliiasobolevska
Copy link
Copy Markdown
Collaborator

@iuliiasobolevska iuliiasobolevska commented Sep 17, 2025

Follow up PR to Paul's PR #876 to also dedup projections

Comment on lines +21 to +25
public val age: PersonProjection
get() {
field("age")
return this
}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the schema like

type Query {
  people: [Person]
}

interface Person {
  firstname: String!
  lastname: String
}

extend interface Person {
  age: Int
}

age method now gets generated

@iuliiasobolevska iuliiasobolevska merged commit bfaef13 into master Sep 17, 2025
3 checks passed
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