2020-08-05 13:30:24 -04:00
|
|
|
# Create full library item
|
|
|
|
# Flesh out a library item with data - most commonly used for syncing lists
|
|
|
|
# between APIs
|
|
|
|
mutation (
|
|
|
|
$userId: ID!
|
|
|
|
$id: ID!,
|
2020-10-05 12:32:12 -04:00
|
|
|
$mediaType: MediaTypeEnum!,
|
|
|
|
$status: LibraryEntryStatusEnum!,
|
|
|
|
$notes: String,
|
|
|
|
$private: Boolean,
|
|
|
|
$progress: Int,
|
|
|
|
$reconsumeCount: Int,
|
|
|
|
$reconsuming: Boolean,
|
|
|
|
$rating: Int,
|
2020-08-05 13:30:24 -04:00
|
|
|
) {
|
2020-08-17 10:24:17 -04:00
|
|
|
libraryEntry {
|
|
|
|
create(input: {
|
|
|
|
userId: $userId
|
|
|
|
mediaId: $id
|
|
|
|
mediaType: $mediaType
|
|
|
|
status: $status
|
2020-10-05 12:32:12 -04:00
|
|
|
notes: $notes
|
|
|
|
private: $private
|
|
|
|
progress: $progress
|
|
|
|
reconsuming: $reconsuming
|
|
|
|
reconsumeCount: $reconsumeCount
|
|
|
|
rating: $rating
|
2020-08-17 10:24:17 -04:00
|
|
|
}) {
|
2020-10-05 12:32:12 -04:00
|
|
|
libraryEntry {
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
media {
|
|
|
|
id
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
status
|
|
|
|
notes
|
|
|
|
private
|
|
|
|
progress
|
|
|
|
reconsumeCount
|
|
|
|
reconsuming
|
|
|
|
rating
|
|
|
|
}
|
2020-08-17 10:24:17 -04:00
|
|
|
}
|
2020-08-05 13:30:24 -04:00
|
|
|
}
|
|
|
|
}
|