From 9ef150cc3a404bf3e65ab17c1fe8c4cf78446cb1 Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 20 Jul 2022 13:59:39 +0200 Subject: [PATCH] add mutation deleteContribution, add apollo deleteContribution --- frontend/src/graphql/mutations.js | 6 ++++++ frontend/src/pages/Community.vue | 24 +++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/frontend/src/graphql/mutations.js b/frontend/src/graphql/mutations.js index 4e2e2b2e2..ec1f5a410 100644 --- a/frontend/src/graphql/mutations.js +++ b/frontend/src/graphql/mutations.js @@ -113,3 +113,9 @@ export const updateContribution = gql` } } ` + +export const deleteContribution = gql` + mutation($id: Int!) { + deleteContribution(id: $id) + } +` diff --git a/frontend/src/pages/Community.vue b/frontend/src/pages/Community.vue index f1bf3dbd8..77c426668 100644 --- a/frontend/src/pages/Community.vue +++ b/frontend/src/pages/Community.vue @@ -36,7 +36,7 @@