stash/graphql/documents/mutations/gallery-chapter.graphql
DingDongSoLong4 7b77b8986f
Overhaul graphql client cache invalidation (#3912)
* Update apollo client
* Overhaul graphql client cache invalidation
* Fix tagger studio link display update
* Add graphql formatting
2023-07-28 10:36:00 +10:00

33 lines
597 B
GraphQL

mutation GalleryChapterCreate(
$title: String!
$image_index: Int!
$gallery_id: ID!
) {
galleryChapterCreate(
input: { title: $title, image_index: $image_index, gallery_id: $gallery_id }
) {
...GalleryChapterData
}
}
mutation GalleryChapterUpdate(
$id: ID!
$title: String!
$image_index: Int!
$gallery_id: ID!
) {
galleryChapterUpdate(
input: {
id: $id
title: $title
image_index: $image_index
gallery_id: $gallery_id
}
) {
...GalleryChapterData
}
}
mutation GalleryChapterDestroy($id: ID!) {
galleryChapterDestroy(id: $id)
}