Timothy J. Warren
744c180d64
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
46 lines
763 B
JavaScript
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
|
|
}
|
|
}
|
|
}
|
|
} |