HummingBirdAnimeClient/src/AnimeClient/API/Kitsu/Mutations/CreateLibraryItem.graphql
Timothy J. Warren f328420869
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
Create and delete media items via GraphQL, see #28
2020-08-05 13:30:24 -04:00

27 lines
407 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: media_type!,
$status: LibraryEntryStatus!,
) {
createLibraryEntry (input: {
userId: $userId
mediaId: $id
mediaType: $type
status: $status
}) {
libraryEntry {
id
media {
type
}
user {
id
}
status
}
}
}