Add optimistic response to metadata mutations

This commit is contained in:
schroda
2024-09-21 20:01:06 +02:00
parent fab5f0b860
commit 20eaa90c10
10 changed files with 101 additions and 89 deletions

View File

@@ -13,19 +13,14 @@ export const DELETE_MANGA_METADATA = gql`
mutation DELETE_MANGA_METADATA($input: DeleteMangaMetaInput!) {
deleteMangaMeta(input: $input) {
meta {
mangaId
key
value
manga {
id
meta {
key
value
}
}
}
manga {
id
meta {
mangaId
key
value
}
@@ -93,15 +88,9 @@ export const SET_MANGA_METADATA = gql`
mutation SET_MANGA_METADATA($input: SetMangaMetaInput!) {
setMangaMeta(input: $input) {
meta {
mangaId
key
value
manga {
id
meta {
key
value
}
}
}
}
}