HummingBirdAnimeClient/src/AnimeClient/API/Kitsu/Queries/GetSyncLibrary.graphql
Timothy J. Warren 1e3bfa7a0a
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/pr-master This commit looks good
Sync Kitsu and Anilist both via GraphQL, see #33
2020-10-16 16:18:56 -04:00

42 lines
635 B
JavaScript

query (
$slug: String!,
$type: MediaTypeEnum!,
$status: [LibraryEntryStatusEnum!],
$after: String
) {
findProfileBySlug(slug: $slug) {
library {
all(first: 100, after: $after, mediaType: $type, status: $status) {
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
nodes {
id
notes
nsfw
private
progress
progressedAt
rating
reconsumeCount
reconsuming
status
media {
id
slug
mappings(first: 10) {
nodes {
externalId
externalSite
}
}
}
}
}
}
}
}