mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-03-01 12:44:37 +00:00
45 lines
722 B
TypeScript
45 lines
722 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
|
|
}
|
|
}
|
|
}
|
|
`
|