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

@@ -34,11 +34,14 @@ export const DELETE_CATEGORY_METADATA = gql`
mutation DELETE_CATEGORY_METADATA($input: DeleteCategoryMetaInput!) {
deleteCategoryMeta(input: $input) {
meta {
categoryId
key
value
}
category {
id
meta {
categoryId
key
value
}
@@ -51,15 +54,9 @@ export const SET_CATEGORY_METADATA = gql`
mutation SET_CATEGORY_METADATA($input: SetCategoryMetaInput!) {
setCategoryMeta(input: $input) {
meta {
categoryId
key
value
category {
id
meta {
key
value
}
}
}
}
}