mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-02-06 09:55:50 +00:00
* externalize gql queries in backend specs * externalize all queries & mutations where easily possible missing change * rename old queries & remove unnecessary function call * fix tests - notifications * fix tests - moderation * remove _CreatePostMutation file * remove _filterPosts & _postQuery files
11 lines
276 B
TypeScript
11 lines
276 B
TypeScript
import gql from 'graphql-tag'
|
|
|
|
export const UpdatePost = gql`
|
|
mutation ($id: ID!, $title: String!, $postContent: String!, $categoryIds: [ID]!) {
|
|
UpdatePost(id: $id, content: $postContent, title: $title, categoryIds: $categoryIds) {
|
|
title
|
|
content
|
|
}
|
|
}
|
|
`
|