Timothy J. Warren
ecce90abd5
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/pr-master This commit looks good
48 lines
796 B
JavaScript
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
|
|
}
|
|
}
|
|
}
|
|
} |