You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java/ClientApiGenerator.kt
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -807,6 +807,16 @@ class ClientApiGenerator(
807
807
val javaType = subProjection.first
808
808
val codeGenResult = subProjection.second
809
809
810
+
// Automatically include __typename when the field type is interface to maintain parity with fragment projections
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-core/src/test/kotlin/com/netflix/graphql/dgs/codegen/clientapi/ClientApiGenProjectionTest.kt
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -583,6 +583,46 @@ class ClientApiGenProjectionTest {
0 commit comments