Change update post mutation to new schema.

Co-authored-by: Tirokk <wolle.huss@pjannto.com>
Co-authored-by: maeckes <markus@infinity.labs.ooo>
This commit is contained in:
elweyn 2023-06-05 15:37:42 +02:00
parent 71d964ae93
commit 46d8244b57

View File

@ -61,6 +61,8 @@ export default () => {
$content: String! $content: String!
$image: ImageInput $image: ImageInput
$categoryIds: [ID] $categoryIds: [ID]
$postType: PostType
$eventInput: _EventInput
) { ) {
UpdatePost( UpdatePost(
id: $id id: $id
@ -68,6 +70,8 @@ export default () => {
content: $content content: $content
image: $image image: $image
categoryIds: $categoryIds categoryIds: $categoryIds
postType: $postType
eventInput: $eventInput
) { ) {
id id
title title
@ -85,6 +89,14 @@ export default () => {
name name
role role
} }
postType
eventStart
eventLocationName
eventVenue
eventLocation {
lng
lat
}
} }
} }
`, `,