From 2aec0adb086c29c278f1ca94545ea52e15dc73ab Mon Sep 17 00:00:00 2001 From: Mitchell Syer Date: Wed, 24 May 2023 06:30:06 -0400 Subject: [PATCH] Category mangas (#552) --- .../kotlin/suwayomi/tachidesk/graphql/types/CategoryType.kt | 2 +- server/src/main/resources/graphql-playground.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/CategoryType.kt b/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/CategoryType.kt index b535c6cc..d6e3cd07 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/CategoryType.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/CategoryType.kt @@ -31,7 +31,7 @@ class CategoryType( row[CategoryTable.isDefault] ) - fun manga(dataFetchingEnvironment: DataFetchingEnvironment): CompletableFuture { + fun mangas(dataFetchingEnvironment: DataFetchingEnvironment): CompletableFuture { return dataFetchingEnvironment.getValueFromDataLoader("MangaForCategoryDataLoader", id) } diff --git a/server/src/main/resources/graphql-playground.html b/server/src/main/resources/graphql-playground.html index bed46d95..a6ba496e 100644 --- a/server/src/main/resources/graphql-playground.html +++ b/server/src/main/resources/graphql-playground.html @@ -72,7 +72,7 @@ 'query AllCategories {\n' + ' categories {\n' + ' nodes {\n' + - ' manga {\n' + + ' mangas {\n' + ' nodes {\n' + ' title\n' + ' }\n' +