HummingBirdAnimeClient/src/AnimeClient/API/Kitsu/Mutations/CreateFullLibraryItem.graphql
Timothy J. Warren ecce90abd5
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/pr-master This commit looks good
Fix hiding anime on completion
2020-10-05 12:32:12 -04:00

48 lines
796 B
JavaScript

# Create full library item
# Flesh out a library item with data - most commonly used for syncing lists
# between APIs
mutation (
$userId: ID!
$id: ID!,
$mediaType: MediaTypeEnum!,
$status: LibraryEntryStatusEnum!,
$notes: String,
$private: Boolean,
$progress: Int,
$reconsumeCount: Int,
$reconsuming: Boolean,
$rating: Int,
) {
libraryEntry {
create(input: {
userId: $userId
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
}
}
}
}