HummingBirdAnimeClient/src/AnimeClient/API/Kitsu/Mutations/CreateFullLibraryItem.graphql
Timothy J. Warren 744c180d64
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
Update library creation mutation to remove now redundant userID argument
2021-10-18 12:15:47 -04:00

46 lines
763 B
JavaScript

# Create full library item
# Flesh out a library item with data - most commonly used for syncing lists
# between APIs
mutation (
$id: ID!,
$mediaType: MediaTypeEnum!,
$status: LibraryEntryStatusEnum!,
$notes: String,
$private: Boolean,
$progress: Int,
$reconsumeCount: Int,
$reconsuming: Boolean,
$rating: Int,
) {
libraryEntry {
create(input: {
mediaId: $id
mediaType: $mediaType
status: $status
notes: $notes
private: $private
progress: $progress
reconsuming: $reconsuming
reconsumeCount: $reconsumeCount
rating: $rating
}) {
libraryEntry {
user {
id
slug
}
media {
id
slug
}
status
notes
private
progress
reconsumeCount
reconsuming
rating
}
}
}
}