Skip to content

Commit

Permalink
Merge pull request #464 from nitoclub/renovate/major-graphqlkotlin
Browse files Browse the repository at this point in the history
fix(deps): update dependency com.expediagroup:graphql-kotlin-ktor-server to v8
  • Loading branch information
tatsutakein authored Sep 18, 2024
2 parents f3253ee + d7bf7c7 commit 428d5dc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import java.util.concurrent.CompletableFuture
class BookQueryService : Query {
@GraphQLDescription("Return list of books based on BookSearchParameter options")
@Suppress("unused")
fun searchBooks(params: BookSearchParameters, dfe: DataFetchingEnvironment): CompletableFuture<List<Book>> =
fun searchBooks(params: BookSearchParameters, dfe: DataFetchingEnvironment): CompletableFuture<List<Book>>? =
dfe.getDataLoader<Int, Book>(BookDataLoader.dataLoaderName)
.loadMany(params.ids)
?.loadMany(params.ids)
}

data class BookSearchParameters(val ids: List<Int>)
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import nito.club.backend.schema.models.Course
import java.util.concurrent.CompletableFuture

class CourseQueryService : Query {
fun searchCourses(params: CourseSearchParameters, dfe: DataFetchingEnvironment): CompletableFuture<List<Course>> =
fun searchCourses(params: CourseSearchParameters, dfe: DataFetchingEnvironment): CompletableFuture<List<Course>>? =
dfe.getDataLoader<Int, Course>(CourseDataLoader.dataLoaderName)
.loadMany(params.ids)
?.loadMany(params.ids)
}

data class CourseSearchParameters(val ids: List<Int>)
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class UniversityQueryService : Query {
fun searchUniversities(
params: UniversitySearchParameters,
dfe: DataFetchingEnvironment,
): CompletableFuture<List<University>> =
): CompletableFuture<List<University>>? =
dfe.getDataLoader<Int, University>(UniversityDataLoader.dataLoaderName)
.loadMany(params.ids)
?.loadMany(params.ids)
}

data class UniversitySearchParameters(val ids: List<Int>)
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ supabase = "2.6.1"
sqldelight = "2.0.2"
stately = "2.1.0"
logback = "1.5.8"
graphqlKotlin = "7.1.5"
graphqlKotlin = "8.0.0"
kotest = "5.9.1"
precompose = "1.6.2"
coil = "3.0.0-alpha10"
Expand Down

0 comments on commit 428d5dc

Please sign in to comment.