Update Kitsu GraphQL Mutations

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,6 @@
mutation($id: ID!, $progress: Int) { mutation($id: ID!, $progress: Int) {
updateLibraryEntry(input: { id: $id, progress: $progress }) { libraryEntry{
update(input: { id: $id, progress: $progress }) {
libraryEntry { libraryEntry {
id id
progress progress
@ -7,3 +8,4 @@ mutation($id: ID!, $progress: Int) {
} }
} }
} }
}

View File

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