Some TODOs with ideas

This commit is contained in:
Syer10
2023-03-31 22:00:01 -04:00
parent 3a67ddf0f6
commit 4c30d8ab05
5 changed files with 69 additions and 0 deletions

View File

@@ -15,6 +15,18 @@ import suwayomi.tachidesk.graphql.types.SourceType
import suwayomi.tachidesk.manga.model.table.SourceTable
import java.util.concurrent.CompletableFuture
/**
* TODO Queries
* - Filter by languages
* - Filter by name
* - Filter by NSFW
* - Sort?
*
* TODO Mutations
* - Browse with filters
* - Configure settings
*
*/
class SourceQuery {
fun source(dataFetchingEnvironment: DataFetchingEnvironment, id: Long): CompletableFuture<SourceType?> {
return dataFetchingEnvironment.getValueFromDataLoader<Long, SourceType?>("SourceDataLoader", id)