diff options
| author | Factiven <[email protected]> | 2023-05-25 22:56:21 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-25 22:56:21 +0700 |
| commit | 8dcb5cb96819547e574d4ca619c54c6f902b8860 (patch) | |
| tree | 492e9147c106d7ddb7706c7ba2127f6d04ac49ce /queries/GET_MEDIA_INFO.js | |
| parent | Update videoPlayer.js (diff) | |
| download | moopa-8dcb5cb96819547e574d4ca619c54c6f902b8860.tar.xz moopa-8dcb5cb96819547e574d4ca619c54c6f902b8860.zip | |
Update v3.6.1
> Added Thumbnail to info page
> Temporarily removed Manga from website until the page is finished
Diffstat (limited to 'queries/GET_MEDIA_INFO.js')
| -rw-r--r-- | queries/GET_MEDIA_INFO.js | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/queries/GET_MEDIA_INFO.js b/queries/GET_MEDIA_INFO.js new file mode 100644 index 0000000..2664831 --- /dev/null +++ b/queries/GET_MEDIA_INFO.js @@ -0,0 +1,67 @@ +export const GET_MEDIA_INFO = ` +query ($id: Int) { + Media(id: $id) { + id + type + title { + romaji + english + native + } + coverImage { + extraLarge + large + color + } + bannerImage + description + episodes + nextAiringEpisode { + episode + airingAt + } + averageScore + popularity + status + startDate { + year + } + duration + genres + relations { + edges { + relationType + node { + id + type + status + title { + romaji + english + userPreferred + } + coverImage { + extraLarge + large + color + } + } + } + } + recommendations { + nodes { + mediaRecommendation { + id + title { + romaji + } + coverImage { + extraLarge + large + } + } + } + } + } +} +`; |