api changes
This commit is contained in:
parent
afbaa3791e
commit
d384bf9d7d
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user