Skip to content

Commit

Permalink
Merge pull request #140 from Netflix/client_api_migration
Browse files Browse the repository at this point in the history
Migrate client API to v2
  • Loading branch information
gracecding authored Jun 8, 2023
2 parents dac8da6 + db7d6fe commit 1ac1ffd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent.*
plugins {
kotlin("jvm") version "1.7.22"
kotlin("plugin.spring") version "1.7.22"
id("com.netflix.dgs.codegen") version "5.6.3"
id("com.netflix.dgs.codegen") version "5.11.1"
id("org.springframework.boot") version "3.0.0"
}

Expand Down Expand Up @@ -61,7 +61,7 @@ dependencies {
}

tasks.withType<com.netflix.graphql.dgs.codegen.gradle.GenerateJavaTask> {
generateClient = true
generateClientv2 = true
packageName = "com.example.demo.generated"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ReviewSubscriptionTest {
AddReviewGraphQLQuery.Builder()
.review(SubmittedReview(1, "testuser", 5))
.build(),
AddReviewProjectionRoot()
AddReviewProjectionRoot<Nothing, Nothing>()
.username()
.starScore()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class ShowsDataFetcherTest {
GraphQLQueryRequest(
ShowsGraphQLQuery.Builder()
.build(),
ShowsProjectionRoot().title()
ShowsProjectionRoot<Nothing, Nothing>().title()
)
val titles = dgsQueryExecutor.executeAndExtractJsonPath<List<String>>(
graphQLQueryRequest.serialize(),
Expand All @@ -127,7 +127,7 @@ class ShowsDataFetcherTest {
GraphQLQueryRequest(
ShowsGraphQLQuery.Builder()
.build(),
ShowsProjectionRoot()
ShowsProjectionRoot<Nothing, Nothing>()
.title(TitleFormat(uppercase = true)).parent
.reviews()
.username()
Expand All @@ -149,7 +149,7 @@ class ShowsDataFetcherTest {
AddReviewGraphQLQuery.Builder()
.review(SubmittedReview(1, "testuser", 5))
.build(),
AddReviewProjectionRoot()
AddReviewProjectionRoot<Nothing, Nothing>()
.username()
.starScore()
)
Expand Down

0 comments on commit 1ac1ffd

Please sign in to comment.