Update Kitsu GraphQL Mutations
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good

This commit is contained in:
Timothy Warren 2020-08-17 10:24:17 -04:00
parent e7e70a1541
commit f3b7e58ee1
5 changed files with 58 additions and 48 deletions

View File

@ -7,7 +7,8 @@ mutation (
$mediaType: media_type!,
$status: MediaListStatus,
) {
createLibraryEntry (input: {
libraryEntry {
create(input: {
userId: $userId
mediaId: $id
mediaType: $mediaType
@ -16,4 +17,5 @@ mutation (
mediaId
status
}
}
}

View File

@ -7,7 +7,8 @@ mutation (
$type: media_type!,
$status: LibraryEntryStatus!,
) {
createLibraryEntry (input: {
libraryEntry {
create(input: {
userId: $userId
mediaId: $id
mediaType: $type
@ -24,4 +25,5 @@ mutation (
status
}
}
}
}

View File

@ -1,7 +1,9 @@
mutation ($id: ID!) {
deleteLibraryEntry(input: {id: $id}) {
libraryEntry{
delete(input: {id: $id}) {
libraryEntry {
id
}
}
}
}

View File

@ -1,9 +1,11 @@
mutation($id: ID!, $progress: Int) {
updateLibraryEntry(input: { id: $id, progress: $progress }) {
libraryEntry{
update(input: { id: $id, progress: $progress }) {
libraryEntry {
id
progress
status
}
}
}
}

View File

@ -8,7 +8,8 @@ mutation(
$reconsuming: Boolean,
$status: LibraryEntryStatus!,
) {
updateLibraryEntry(input: {
libraryEntry{
update(input: {
id: $id,
notes: $notes
private: $private
@ -29,4 +30,5 @@ mutation(
status
}
}
}
}