2020-08-05 13:30:24 -04:00
|
|
|
# Create minimal library item
|
|
|
|
# This is the more common use case, when adding an anime or manga to
|
|
|
|
# the user's library.
|
|
|
|
mutation (
|
|
|
|
$userId: ID!
|
|
|
|
$id: ID!,
|
2020-09-15 08:08:39 -04:00
|
|
|
$type: MediaTypeEnum!,
|
|
|
|
$status: LibraryEntryStatusEnum!,
|
2020-08-05 13:30:24 -04:00
|
|
|
) {
|
2020-08-17 10:24:17 -04:00
|
|
|
libraryEntry {
|
|
|
|
create(input: {
|
|
|
|
userId: $userId
|
|
|
|
mediaId: $id
|
|
|
|
mediaType: $type
|
|
|
|
status: $status
|
|
|
|
}) {
|
|
|
|
libraryEntry {
|
2020-08-05 13:30:24 -04:00
|
|
|
id
|
2020-08-17 10:24:17 -04:00
|
|
|
media {
|
|
|
|
type
|
|
|
|
}
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
status
|
2020-08-05 13:30:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|