Fix/add manga to library without dialog not adding default categories (#632)
* Add default categories when adding manga to library without dialog * Add manga to library and update categories in one mutation
This commit is contained in:
@@ -99,13 +99,22 @@ export const SET_MANGA_METADATA = gql`
|
||||
`;
|
||||
|
||||
export const UPDATE_MANGA = gql`
|
||||
mutation UPDATE_MANGA($input: UpdateMangaInput!) {
|
||||
mutation UPDATE_MANGA(
|
||||
$input: UpdateMangaInput!
|
||||
$updateCategoryInput: UpdateMangaCategoriesInput!
|
||||
$updateCategories: Boolean!
|
||||
) {
|
||||
updateManga(input: $input) {
|
||||
clientMutationId
|
||||
manga {
|
||||
id
|
||||
inLibrary
|
||||
inLibraryAt
|
||||
}
|
||||
}
|
||||
updateMangaCategories(input: $updateCategoryInput) @include(if: $updateCategories) {
|
||||
manga {
|
||||
id
|
||||
categories {
|
||||
nodes {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user