generated from Liinkiing/react-typescript-apollo-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
61 lines (55 loc) · 1.37 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
}
"An Anime"
type Anime {
airing: Boolean!
broadcast: String
description: String
duration: String
endingThemes: [String!]!
episodesCount: Int!
"Get the associated MyAnimeList ID"
malId: ID
media: AnimeMedia!
openingThemes: [String!]!
popularity: Int!
rank: Int!
rating: String!
"Get a list of anime recommendations that explains why the anime has been recommended."
related(first: Int = 3): [RelatedAnimeRecommendations!]!
score: Float!
slug: String!
status: String!
synonyms: [String!]!
title: AnimeTitle!
trailerUrl: String
type: String!
url: String
}
"Get an anime media"
type AnimeMedia {
background: String!
banner: String
poster: String
}
type AnimeTitle {
english: String!
japanese: String!
}
type Query {
"Get anime by its slug"
anime(slug: String!): Anime
"Get the animelist of a user"
animelist(username: String!): [Anime!]!
"Get recommendations"
recommendations(limit: Int = 10, offset: Int = 0, username: String!): [Anime!]!
}
"An Anime recommendation from a viewer perspective that explain why an anime has been recommended"
type RelatedAnimeRecommendations {
"Get the anime that made this recommendation relevant"
anime: Anime!
"The higher the score is, the higher it will be recommended"
score: Int!
}