diff options
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/GET_CURRENT_USER.js | 15 | ||||
| -rw-r--r-- | queries/GET_MEDIA_INFO.js | 68 | ||||
| -rw-r--r-- | queries/GET_MEDIA_USER.js | 52 | ||||
| -rw-r--r-- | queries/index.js | 5 |
4 files changed, 0 insertions, 140 deletions
diff --git a/queries/GET_CURRENT_USER.js b/queries/GET_CURRENT_USER.js deleted file mode 100644 index 50dc1a4..0000000 --- a/queries/GET_CURRENT_USER.js +++ /dev/null @@ -1,15 +0,0 @@ -import { gql } from "@apollo/client"; - -export default gql` - query { - Viewer { - id - name - avatar { - large - medium - } - bannerImage - } - } -`; diff --git a/queries/GET_MEDIA_INFO.js b/queries/GET_MEDIA_INFO.js deleted file mode 100644 index aad6c92..0000000 --- a/queries/GET_MEDIA_INFO.js +++ /dev/null @@ -1,68 +0,0 @@ -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 - timeUntilAiring - } - 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 - } - } - } - } - } -} -`; diff --git a/queries/GET_MEDIA_USER.js b/queries/GET_MEDIA_USER.js deleted file mode 100644 index c422f56..0000000 --- a/queries/GET_MEDIA_USER.js +++ /dev/null @@ -1,52 +0,0 @@ -export const GET_MEDIA_USER = ` -query ($username: String, $status: MediaListStatus) { - MediaListCollection(userName: $username, type: ANIME, status: $status, sort: SCORE_DESC) { - user { - id - name - about (asHtml: true) - createdAt - avatar { - large - } - statistics { - anime { - count - episodesWatched - meanScore - minutesWatched - } - } - bannerImage - mediaListOptions { - animeList { - sectionOrder - } - } - } - lists { - status - name - entries { - id - mediaId - status - progress - score - media { - id - status - title { - english - romaji - } - episodes - coverImage { - large - } - } - } - } - } - } -`; diff --git a/queries/index.js b/queries/index.js deleted file mode 100644 index 4cd8580..0000000 --- a/queries/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import GET_CURRENT_USER from "./GET_CURRENT_USER"; -import { GET_MEDIA_USER } from "./GET_MEDIA_USER"; -import { GET_MEDIA_INFO } from "./GET_MEDIA_INFO"; - -export { GET_CURRENT_USER, GET_MEDIA_USER, GET_MEDIA_INFO }; |