stash/ui/v2.5/graphql/mutations/gallery-chapter.graphql
DingDongSoLong4 2d73912f15
Improve client-side graphql scalar types (#4511)
* Add types to graphql scalars
* Upgrade dependencies
* Override UI config type
* Remove all IUIConfig casts
* Add tableColumns to IUIConfig
* Add BoolMap type, set strictScalars
* Add PluginConfigMap
* Replace any with unknown
* Add SavedObjectFilter and SavedUIOptions
* Remove unused items from CriterionType
2024-02-07 09:49:32 +11: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)
}