aboutsummaryrefslogtreecommitdiff
path: root/src/graphql/anime/schema.graphql
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-05 19:38:02 -0700
committerFuwn <[email protected]>2024-10-05 19:40:08 -0700
commit37e76927cc72baad03c2ef200351aafeb4ea1e7e (patch)
treef755d58ada1f3a37e3041ef75c231a847bb639b5 /src/graphql/anime/schema.graphql
parentfix(feeds): oauth refresh url (diff)
downloaddue.moe-37e76927cc72baad03c2ef200351aafeb4ea1e7e.tar.xz
due.moe-37e76927cc72baad03c2ef200351aafeb4ea1e7e.zip
feat(graphql): add subtitles
Diffstat (limited to 'src/graphql/anime/schema.graphql')
-rw-r--r--src/graphql/anime/schema.graphql29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/graphql/anime/schema.graphql b/src/graphql/anime/schema.graphql
new file mode 100644
index 00000000..d5774966
--- /dev/null
+++ b/src/graphql/anime/schema.graphql
@@ -0,0 +1,29 @@
+type Query {
+ Anime(timezone: String): Anime!
+}
+
+type Anime {
+ subtitles: Subtitles
+}
+
+type Subtitles {
+ timezone: String
+ schedule: SubtitleSchedule
+}
+
+type SubtitleSchedule {
+ monday: [Subtitle]
+ tuesday: [Subtitle]
+ wednesday: [Subtitle]
+ thursday: [Subtitle]
+ friday: [Subtitle]
+ saturday: [Subtitle]
+ sunday: [Subtitle]
+}
+
+type Subtitle {
+ title: String
+ page: String
+ image_url: String
+ time: String
+}