HummingBirdAnimeClient/src/AnimeClient/API/Kitsu/Mutations/CreateLibraryItem.graphql
Timothy J. Warren 913f9082ef
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/pr-master This commit looks good
Update GraphQL queries to match API changes
2020-09-15 08:08:39 -04:00

29 lines
437 B
JavaScript

# 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!,
$type: MediaTypeEnum!,
$status: LibraryEntryStatusEnum!,
) {
libraryEntry {
create(input: {
userId: $userId
mediaId: $id
mediaType: $type
status: $status
}) {
libraryEntry {
id
media {
type
}
user {
id
}
status
}
}
}
}