mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-02-06 09:56:03 +00:00
* refactor: externalize all remaining queries in spec files * User with different queries due to permissions * fix notification:groups * fix hashtagsmiddleware * fix blockedUsers * fix softDeleteMiddleware * fix shouts.spec * fix userInteractions spec * fix mutedUsers spec * seocialMedia spec * fix notificationMiddleware.spec * fix user.spce & fix undefined activeCategories * fix notifications.spec * fix userInteractions.spec * fix blockedUsers & mutedUsers spec * remove unused comment * fix locations spec * fix orderByMiddleware & spec * fix lint * fix shout spec
45 lines
718 B
TypeScript
45 lines
718 B
TypeScript
import gql from 'graphql-tag'
|
|
|
|
export const UpdatePost = gql`
|
|
mutation (
|
|
$id: ID!
|
|
$title: String!
|
|
$content: String!
|
|
$image: ImageInput
|
|
$categoryIds: [ID]
|
|
$postType: PostType
|
|
$eventInput: _EventInput
|
|
) {
|
|
UpdatePost(
|
|
id: $id
|
|
title: $title
|
|
content: $content
|
|
image: $image
|
|
categoryIds: $categoryIds
|
|
postType: $postType
|
|
eventInput: $eventInput
|
|
) {
|
|
id
|
|
title
|
|
content
|
|
author {
|
|
name
|
|
slug
|
|
}
|
|
createdAt
|
|
updatedAt
|
|
categories {
|
|
id
|
|
}
|
|
postType
|
|
eventStart
|
|
eventLocationName
|
|
eventVenue
|
|
eventLocation {
|
|
lng
|
|
lat
|
|
}
|
|
}
|
|
}
|
|
`
|