mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
* separate all queries into one file each * fix merge error * fix lint --------- Co-authored-by: mahula <lenzmath@posteo.de> Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
53 lines
949 B
TypeScript
53 lines
949 B
TypeScript
import gql from 'graphql-tag'
|
|
|
|
export const createPostMutation = () => {
|
|
return gql`
|
|
mutation (
|
|
$id: ID
|
|
$title: String!
|
|
$slug: String
|
|
$content: String!
|
|
$categoryIds: [ID]
|
|
$groupId: ID
|
|
$postType: PostType
|
|
$eventInput: _EventInput
|
|
) {
|
|
CreatePost(
|
|
id: $id
|
|
title: $title
|
|
slug: $slug
|
|
content: $content
|
|
categoryIds: $categoryIds
|
|
groupId: $groupId
|
|
postType: $postType
|
|
eventInput: $eventInput
|
|
) {
|
|
id
|
|
slug
|
|
title
|
|
content
|
|
disabled
|
|
deleted
|
|
postType
|
|
author {
|
|
name
|
|
}
|
|
categories {
|
|
id
|
|
}
|
|
eventStart
|
|
eventEnd
|
|
eventLocationName
|
|
eventVenue
|
|
eventIsOnline
|
|
eventLocation {
|
|
lng
|
|
lat
|
|
}
|
|
isObservedByMe
|
|
observingUsersCount
|
|
}
|
|
}
|
|
`
|
|
}
|