api changes

This commit is contained in:
bniwredyc 2023-05-07 17:23:48 +02:00
parent afbaa3791e
commit d384bf9d7d
3 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
import { gql } from '@urql/core'
export default gql`
mutation DeleteShoutMutation($shout: String!) {
deleteShout(slug: $shout) {
mutation DeleteShoutMutation($shoutId: Int!) {
deleteShout(shout_id: $shoutId) {
error
}
}

View File

@ -1,8 +1,8 @@
import { gql } from '@urql/core'
export default gql`
mutation PublishShoutMutation($slug: String!) {
publishShout(slug: $slug) {
mutation PublishShoutMutation($shoutId: Int!, $shoutInput: ShoutInput) {
publishShout(shout_id: $shoutId, shout_input: $shoutInput) {
error
shout {
id

View File

@ -2,7 +2,7 @@ import { gql } from '@urql/core'
export default gql`
mutation UpdateShoutMutation($shoutId: Int!, $shoutInput: ShoutInput!) {
updateShout(shoutId: $shoutId, shoutInput: $shoutInput) {
updateShout(shout_id: $shoutId, shout_input: $shoutInput) {
error
shout {
id