From 46d8244b5760b6a0a157dda65e47fb95a6bc7345 Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 5 Jun 2023 15:37:42 +0200 Subject: [PATCH] Change update post mutation to new schema. Co-authored-by: Tirokk Co-authored-by: maeckes --- webapp/graphql/PostMutations.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/webapp/graphql/PostMutations.js b/webapp/graphql/PostMutations.js index 6b71b86b9..c3a9369c3 100644 --- a/webapp/graphql/PostMutations.js +++ b/webapp/graphql/PostMutations.js @@ -61,6 +61,8 @@ export default () => { $content: String! $image: ImageInput $categoryIds: [ID] + $postType: PostType + $eventInput: _EventInput ) { UpdatePost( id: $id @@ -68,6 +70,8 @@ export default () => { content: $content image: $image categoryIds: $categoryIds + postType: $postType + eventInput: $eventInput ) { id title @@ -85,6 +89,14 @@ export default () => { name role } + postType + eventStart + eventLocationName + eventVenue + eventLocation { + lng + lat + } } } `,