Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
5 changed files with 58 additions and 48 deletions
Showing only changes of commit f3b7e58ee1 - Show all commits

View File

@ -7,13 +7,15 @@ mutation (
$mediaType: media_type!,
$status: MediaListStatus,
) {
createLibraryEntry (input: {
userId: $userId
mediaId: $id
mediaType: $mediaType
status: $status
}) {
mediaId
status
libraryEntry {
create(input: {
userId: $userId
mediaId: $id
mediaType: $mediaType
status: $status
}) {
mediaId
status
}
}
}

View File

@ -7,21 +7,23 @@ mutation (
$type: media_type!,
$status: LibraryEntryStatus!,
) {
createLibraryEntry (input: {
userId: $userId
mediaId: $id
mediaType: $type
status: $status
}) {
libraryEntry {
id
media {
type
}
user {
libraryEntry {
create(input: {
userId: $userId
mediaId: $id
mediaType: $type
status: $status
}) {
libraryEntry {
id
media {
type
}
user {
id
}
status
}
status
}
}
}

View File

@ -1,7 +1,9 @@
mutation ($id: ID!) {
deleteLibraryEntry(input: {id: $id}) {
libraryEntry {
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 {
id
progress
status
libraryEntry{
update(input: { id: $id, progress: $progress }) {
libraryEntry {
id
progress
status
}
}
}
}

View File

@ -8,25 +8,27 @@ mutation(
$reconsuming: Boolean,
$status: LibraryEntryStatus!,
) {
updateLibraryEntry(input: {
id: $id,
notes: $notes
private: $private
progress: $progress
rating: $ratingTwenty
reconsumeCount: $reconsumeCount
reconsuming: $reconsuming
status: $status
}) {
libraryEntry {
id
notes
private
progress
rating
reconsumeCount
reconsuming
status
libraryEntry{
update(input: {
id: $id,
notes: $notes
private: $private
progress: $progress
rating: $ratingTwenty
reconsumeCount: $reconsumeCount
reconsuming: $reconsuming
status: $status
}) {
libraryEntry {
id
notes
private
progress
rating
reconsumeCount
reconsuming
status
}
}
}
}