-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95f27dc
commit e1ca748
Showing
49 changed files
with
275 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...aphql/dgs/codegen/cases/constantsWithExtendedInterface/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.constantsWithExtendedInterface.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun people(_projection: PersonProjection.() -> PersonProjection): QueryProjection { | ||
field("people", PersonProjection(), _projection) | ||
public fun people(_alias: String? = null, _projection: PersonProjection.() -> PersonProjection): | ||
QueryProjection { | ||
field(_alias, "people", PersonProjection(), _projection) | ||
return this | ||
} | ||
} |
11 changes: 7 additions & 4 deletions
11
...x/graphql/dgs/codegen/cases/constantsWithExtendedQuery/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.constantsWithExtendedQuery.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun people(_projection: PersonProjection.() -> PersonProjection): QueryProjection { | ||
field("people", PersonProjection(), _projection) | ||
public fun people(_alias: String? = null, _projection: PersonProjection.() -> PersonProjection): | ||
QueryProjection { | ||
field(_alias, "people", PersonProjection(), _projection) | ||
return this | ||
} | ||
|
||
public fun friends(_projection: PersonProjection.() -> PersonProjection): QueryProjection { | ||
field("friends", PersonProjection(), _projection) | ||
public fun friends(_alias: String? = null, _projection: PersonProjection.() -> PersonProjection): | ||
QueryProjection { | ||
field(_alias, "friends", PersonProjection(), _projection) | ||
return this | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
...x/graphql/dgs/codegen/cases/constantsWithExtendedTypes/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.constantsWithExtendedTypes.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun people(_projection: PersonProjection.() -> PersonProjection): QueryProjection { | ||
field("people", PersonProjection(), _projection) | ||
public fun people(_alias: String? = null, _projection: PersonProjection.() -> PersonProjection): | ||
QueryProjection { | ||
field(_alias, "people", PersonProjection(), _projection) | ||
return this | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...etflix/graphql/dgs/codegen/cases/dataClassWIthNoFields/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWIthNoFields.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun me(_projection: PersonProjection.() -> PersonProjection): QueryProjection { | ||
field("me", PersonProjection(), _projection) | ||
public fun me(_alias: String? = null, _projection: PersonProjection.() -> PersonProjection): | ||
QueryProjection { | ||
field(_alias, "me", PersonProjection(), _projection) | ||
return this | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
...ix/graphql/dgs/codegen/cases/dataClassWithBooleanField/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithBooleanField.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun test(_projection: RequiredTestTypeProjection.() -> RequiredTestTypeProjection): | ||
QueryProjection { | ||
field("test", RequiredTestTypeProjection(), _projection) | ||
public fun test(_alias: String? = null, | ||
_projection: RequiredTestTypeProjection.() -> RequiredTestTypeProjection): QueryProjection { | ||
field(_alias, "test", RequiredTestTypeProjection(), _projection) | ||
return this | ||
} | ||
} |
13 changes: 7 additions & 6 deletions
13
.../codegen/cases/dataClassWithDeclaredScalars/expected/client/EntityConnectionProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithDeclaredScalars.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class EntityConnectionProjection : GraphQLProjection() { | ||
public fun pageInfo(_projection: PageInfoProjection.() -> PageInfoProjection): | ||
EntityConnectionProjection { | ||
field("pageInfo", PageInfoProjection(), _projection) | ||
public fun pageInfo(_alias: String? = null, | ||
_projection: PageInfoProjection.() -> PageInfoProjection): EntityConnectionProjection { | ||
field(_alias, "pageInfo", PageInfoProjection(), _projection) | ||
return this | ||
} | ||
|
||
public fun edges(_projection: EntityEdgeProjection.() -> EntityEdgeProjection): | ||
EntityConnectionProjection { | ||
field("edges", EntityEdgeProjection(), _projection) | ||
public fun edges(_alias: String? = null, | ||
_projection: EntityEdgeProjection.() -> EntityEdgeProjection): EntityConnectionProjection { | ||
field(_alias, "edges", EntityEdgeProjection(), _projection) | ||
return this | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
...graphql/dgs/codegen/cases/dataClassWithDeclaredScalars/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithDeclaredScalars.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun entity(_projection: EntityProjection.() -> EntityProjection): QueryProjection { | ||
field("entity", EntityProjection(), _projection) | ||
public fun entity(_alias: String? = null, _projection: EntityProjection.() -> EntityProjection): | ||
QueryProjection { | ||
field(_alias, "entity", EntityProjection(), _projection) | ||
return this | ||
} | ||
|
||
public | ||
fun entityConnection(_projection: EntityConnectionProjection.() -> EntityConnectionProjection): | ||
QueryProjection { | ||
field("entityConnection", EntityConnectionProjection(), _projection) | ||
public fun entityConnection(_alias: String? = null, | ||
_projection: EntityConnectionProjection.() -> EntityConnectionProjection): QueryProjection { | ||
field(_alias, "entityConnection", EntityConnectionProjection(), _projection) | ||
return this | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...gs/codegen/cases/dataClassWithDeeplyNestedComplexField/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithDeeplyNestedComplexField.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun cars(_projection: CarProjection.() -> CarProjection): QueryProjection { | ||
field("cars", CarProjection(), _projection) | ||
public fun cars(_alias: String? = null, _projection: CarProjection.() -> CarProjection): | ||
QueryProjection { | ||
field(_alias, "cars", CarProjection(), _projection) | ||
return this | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
...aphql/dgs/codegen/cases/dataClassWithExtendedInterface/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithExtendedInterface.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun people(_projection: PersonProjection.() -> PersonProjection): QueryProjection { | ||
field("people", PersonProjection(), _projection) | ||
public fun people(_alias: String? = null, _projection: PersonProjection.() -> PersonProjection): | ||
QueryProjection { | ||
field(_alias, "people", PersonProjection(), _projection) | ||
return this | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
...tflix/graphql/dgs/codegen/cases/dataClassWithInterface/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithInterface.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun people(_projection: PersonProjection.() -> PersonProjection): QueryProjection { | ||
field("people", PersonProjection(), _projection) | ||
public fun people(_alias: String? = null, _projection: PersonProjection.() -> PersonProjection): | ||
QueryProjection { | ||
field(_alias, "people", PersonProjection(), _projection) | ||
return this | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
...ql/dgs/codegen/cases/dataClassWithInterfaceInheritance/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithInterfaceInheritance.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun people(_projection: PersonProjection.() -> PersonProjection): QueryProjection { | ||
field("people", PersonProjection(), _projection) | ||
public fun people(_alias: String? = null, _projection: PersonProjection.() -> PersonProjection): | ||
QueryProjection { | ||
field(_alias, "people", PersonProjection(), _projection) | ||
return this | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
.../graphql/dgs/codegen/cases/dataClassWithListProperties/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithListProperties.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun people(_projection: PersonProjection.() -> PersonProjection): QueryProjection { | ||
field("people", PersonProjection(), _projection) | ||
public fun people(_alias: String? = null, _projection: PersonProjection.() -> PersonProjection): | ||
QueryProjection { | ||
field(_alias, "people", PersonProjection(), _projection) | ||
return this | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
...raphql/dgs/codegen/cases/dataClassWithMappedInterfaces/expected/client/QueryProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithMappedInterfaces.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class QueryProjection : GraphQLProjection() { | ||
public fun products(_projection: ProductProjection.() -> ProductProjection): QueryProjection { | ||
field("products", ProductProjection(), _projection) | ||
public fun products(_alias: String? = null, | ||
_projection: ProductProjection.() -> ProductProjection): QueryProjection { | ||
field(_alias, "products", ProductProjection(), _projection) | ||
return this | ||
} | ||
} |
13 changes: 7 additions & 6 deletions
13
.../dgs/codegen/cases/dataClassWithMappedTypes/expected/client/EntityConnectionProjection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
package com.netflix.graphql.dgs.codegen.cases.dataClassWithMappedTypes.expected.client | ||
|
||
import com.netflix.graphql.dgs.codegen.GraphQLProjection | ||
import kotlin.String | ||
|
||
public class EntityConnectionProjection : GraphQLProjection() { | ||
public fun pageInfo(_projection: PageInfoProjection.() -> PageInfoProjection): | ||
EntityConnectionProjection { | ||
field("pageInfo", PageInfoProjection(), _projection) | ||
public fun pageInfo(_alias: String? = null, | ||
_projection: PageInfoProjection.() -> PageInfoProjection): EntityConnectionProjection { | ||
field(_alias, "pageInfo", PageInfoProjection(), _projection) | ||
return this | ||
} | ||
|
||
public fun edges(_projection: EntityEdgeProjection.() -> EntityEdgeProjection): | ||
EntityConnectionProjection { | ||
field("edges", EntityEdgeProjection(), _projection) | ||
public fun edges(_alias: String? = null, | ||
_projection: EntityEdgeProjection.() -> EntityEdgeProjection): EntityConnectionProjection { | ||
field(_alias, "edges", EntityEdgeProjection(), _projection) | ||
return this | ||
} | ||
} |
Oops, something went wrong.