Add first GraphQL files for Kitsu for future implementation
timw4mail/HummingBirdAnimeClient/develop This commit looks good Details

This commit is contained in:
Timothy Warren 2019-08-10 10:10:09 -04:00
parent 27160bda9a
commit 9140ebaa19
2 changed files with 184 additions and 0 deletions

View File

@ -0,0 +1,120 @@
query ($slug: String) {
anime(slug: $slug) {
nodes {
ageRating
ageRatingGuide
bannerImage {
original {
height
name
url
width
}
views {
height
name
url
width
}
}
characters {
nodes {
character {
names {
canonical
alternatives
}
slug
}
role
voices {
nodes {
id
licensor {
id
name
}
locale
person {
id
names {
alternatives
canonical
localized
}
}
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
endDate
episodeCount
episodeLength
posterImage {
original {
height
name
url
width
}
views {
height
name
url
width
}
}
season
sfw
slug
staff {
nodes {
person {
id
birthday
image {
original {
height
name
url
width
}
views {
height
name
url
width
}
}
names {
alternatives
canonical
localized
}
}
role
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
status
synopsis
titles {
alternatives
canonical
localized
}
totalLength
}
}
}

View File

@ -0,0 +1,64 @@
# Requires authentication to select associated user
query {
session {
account {
email
id
proSubscription {
billingService
tier
}
}
profile {
about
avatarImage {
original {
name
url
width
height
}
}
bannerImage {
original {
name
url
width
height
}
}
id
name
proMessage
proTier
slug
url
waifu {
id
image {
original {
name
url
width
height
}
}
names {
canonical
alternatives
localized
}
primaryMedia {
slug
titles {
canonical
alternatives
localized
}
}
slug
}
waifuOrHusbando
}
}
}