mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +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>
56 lines
1.1 KiB
TypeScript
56 lines
1.1 KiB
TypeScript
import gql from 'graphql-tag'
|
|
|
|
export const createGroupMutation = () => {
|
|
return gql`
|
|
mutation (
|
|
$id: ID
|
|
$name: String!
|
|
$slug: String
|
|
$about: String
|
|
$description: String!
|
|
$groupType: GroupType!
|
|
$actionRadius: GroupActionRadius!
|
|
$categoryIds: [ID]
|
|
$locationName: String # empty string '' sets it to null
|
|
) {
|
|
CreateGroup(
|
|
id: $id
|
|
name: $name
|
|
slug: $slug
|
|
about: $about
|
|
description: $description
|
|
groupType: $groupType
|
|
actionRadius: $actionRadius
|
|
categoryIds: $categoryIds
|
|
locationName: $locationName
|
|
) {
|
|
id
|
|
name
|
|
slug
|
|
createdAt
|
|
updatedAt
|
|
disabled
|
|
deleted
|
|
about
|
|
description
|
|
descriptionExcerpt
|
|
groupType
|
|
actionRadius
|
|
categories {
|
|
id
|
|
slug
|
|
name
|
|
icon
|
|
}
|
|
locationName
|
|
location {
|
|
name
|
|
nameDE
|
|
nameEN
|
|
}
|
|
myRole
|
|
}
|
|
}
|
|
`
|
|
}
|