mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
# Conflicts: # webapp/components/ContributionForm/index.vue # webapp/graphql/PostMutations.js
38 lines
809 B
JavaScript
38 lines
809 B
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export default () => {
|
|
return {
|
|
CreatePost: gql(`
|
|
mutation($title: String!, $content: String!, $language: String) {
|
|
CreatePost(title: $title, content: $content, language: $language) {
|
|
id
|
|
title
|
|
slug
|
|
content
|
|
contentExcerpt
|
|
language
|
|
}
|
|
}
|
|
`),
|
|
UpdatePost: gql(`
|
|
mutation($id: ID!, $title: String!, $content: String!, $language: String) {
|
|
UpdatePost(id: $id, title: $title, content: $content, language: $language) {
|
|
id
|
|
title
|
|
slug
|
|
content
|
|
contentExcerpt
|
|
language
|
|
}
|
|
}
|
|
`,
|
|
DeletePost: gql`
|
|
mutation($id: ID!) {
|
|
DeletePost(id: $id) {
|
|
id
|
|
}
|
|
}
|
|
`,
|
|
}
|
|
}
|