Update library creation mutation to remove now redundant userID argument

This commit is contained in:
Timothy Warren 2021-10-18 12:15:47 -04:00
parent 602f0fc9c5
commit 7301c4852d
3 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,6 @@
# Flesh out a library item with data - most commonly used for syncing lists
# between APIs
mutation (
$userId: ID!
$id: ID!,
$mediaType: MediaTypeEnum!,
$status: LibraryEntryStatusEnum!,
@ -15,7 +14,6 @@ mutation (
) {
libraryEntry {
create(input: {
userId: $userId
mediaId: $id
mediaType: $mediaType
status: $status

View File

@ -2,14 +2,12 @@
# 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

View File

@ -17,6 +17,13 @@ query ($type: MediaTypeEnum!) {
width
}
}
myLibraryEntry {
progress
status
private
notes
rating
}
categories(first: 100) {
nodes {
title