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
+1-1
Original file line number
Diff line number
Diff line change
@@ -466,7 +466,7 @@ class ClientApiGenerator(private val config: CodeGenConfig, private val document
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java/ClientApiGeneratorv2.kt
+9-9
Original file line number
Diff line number
Diff line change
@@ -211,14 +211,14 @@ class ClientApiGeneratorv2(private val config: CodeGenConfig, private val docume
val className =ClassName.get(BaseSubProjectionNode::class.java)
214
-
val parentJavaType =TypeVariableName.get("PARENT").withBounds(ParameterizedTypeName.get(className, TypeVariableName.get("?"), TypeVariableName.get("?"), TypeVariableName.get("?")))
215
-
val rootJavaType =TypeVariableName.get("ROOT").withBounds(ParameterizedTypeName.get(className, TypeVariableName.get("?"), TypeVariableName.get("?"), TypeVariableName.get("?")))
214
+
val parentJavaType =TypeVariableName.get("PARENT").withBounds(ParameterizedTypeName.get(className, TypeVariableName.get("?"), TypeVariableName.get("?")))
215
+
val rootJavaType =TypeVariableName.get("ROOT").withBounds(ParameterizedTypeName.get(className, TypeVariableName.get("?"), TypeVariableName.get("?")))
@@ -480,14 +480,14 @@ class ClientApiGeneratorv2(private val config: CodeGenConfig, private val docume
480
480
val clazzName ="${prefix}Projection"
481
481
if (generatedClasses.contains(clazzName)) returnnullelse generatedClasses.add(clazzName)
482
482
483
-
val parentJavaType =TypeVariableName.get("PARENT").withBounds(ParameterizedTypeName.get(className, TypeVariableName.get("?"), TypeVariableName.get("?"), TypeVariableName.get("?")))
484
-
val rootJavaType =TypeVariableName.get("ROOT").withBounds(ParameterizedTypeName.get(className, TypeVariableName.get("?"), TypeVariableName.get("?"), TypeVariableName.get("?")))
483
+
val parentJavaType =TypeVariableName.get("PARENT").withBounds(ParameterizedTypeName.get(className, TypeVariableName.get("?"), TypeVariableName.get("?")))
484
+
val rootJavaType =TypeVariableName.get("ROOT").withBounds(ParameterizedTypeName.get(className, TypeVariableName.get("?"), TypeVariableName.get("?")))
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-core/src/test/kotlin/com/netflix/graphql/dgs/codegen/clientapi/ClientApiGenFragmentTest.kt
+2-4
Original file line number
Diff line number
Diff line change
@@ -127,8 +127,7 @@ class ClientApiGenFragmentTest {
127
127
.doesNotContain("duration")
128
128
129
129
val superclass = codeGenResult.clientProjections[3].typeSpec.superclass asParameterizedTypeName
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/BaseProjectionNode.kt
-2
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,8 @@ abstract class BaseProjectionNode(
33
33
) {
34
34
35
35
val fields:MutableMap<String, Any?> =LinkedHashMap()
36
-
val aliases:MutableMap<String, FieldAlias> =LinkedHashMap()
37
36
val fragments:MutableList<BaseProjectionNode> =LinkedList()
38
37
val inputArguments:MutableMap<String, List<InputArgument>> =LinkedHashMap()
39
38
40
39
data classInputArgument(valname:String, valvalue:Any?)
41
-
data classFieldAlias(valfieldName:String, valvalue:Any?)
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/BaseSubProjectionNode.kt
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/GraphQLMultiQueryRequest.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ class GraphQLMultiQueryRequest(
57
57
}
58
58
59
59
if (request.projection !=null) {
60
-
val selectionSet =if (request.projection isBaseSubProjectionNode<*, *, *>) {
60
+
val selectionSet =if (request.projection isBaseSubProjectionNode<*, *>) {
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/GraphQLQueryRequest.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ class GraphQLQueryRequest @JvmOverloads constructor(
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/ProjectionSerializer.kt
-24
Original file line number
Diff line number
Diff line change
@@ -51,30 +51,6 @@ class ProjectionSerializer(private val inputValueSerializer: InputValueSerialize
51
51
selectionSet.selection(fieldSelection.build())
52
52
}
53
53
54
-
for ((fieldName, fieldAlias) in projection.aliases) {
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/test/java/com/netflix/graphql/dgs/client/codegen/exampleprojection/ShowsProjectionRoot.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ public ShowsProjectionRoot releaseYear() {
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/test/kotlin/com/netflix/graphql/dgs/client/codegen/ProjectionSerializerTest.kt
-33
Original file line number
Diff line number
Diff line change
@@ -102,37 +102,4 @@ internal class ProjectionSerializerTest {
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/test/kotlin/com/netflix/graphql/dgs/client/codegen/exampleprojection/EntitiesMovieKeyProjection.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ class EntitiesMovieKeyProjection(
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/test/kotlin/com/netflix/graphql/dgs/client/codegen/exampleprojection/Movies_ReviewsProjection.kt
0 commit comments