api changes
This commit is contained in:
parent
afbaa3791e
commit
d384bf9d7d
|
@ -1,8 +1,8 @@
|
||||||
import { gql } from '@urql/core'
|
import { gql } from '@urql/core'
|
||||||
|
|
||||||
export default gql`
|
export default gql`
|
||||||
mutation DeleteShoutMutation($shout: String!) {
|
mutation DeleteShoutMutation($shoutId: Int!) {
|
||||||
deleteShout(slug: $shout) {
|
deleteShout(shout_id: $shoutId) {
|
||||||
error
|
error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { gql } from '@urql/core'
|
import { gql } from '@urql/core'
|
||||||
|
|
||||||
export default gql`
|
export default gql`
|
||||||
mutation PublishShoutMutation($slug: String!) {
|
mutation PublishShoutMutation($shoutId: Int!, $shoutInput: ShoutInput) {
|
||||||
publishShout(slug: $slug) {
|
publishShout(shout_id: $shoutId, shout_input: $shoutInput) {
|
||||||
error
|
error
|
||||||
shout {
|
shout {
|
||||||
id
|
id
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { gql } from '@urql/core'
|
||||||
|
|
||||||
export default gql`
|
export default gql`
|
||||||
mutation UpdateShoutMutation($shoutId: Int!, $shoutInput: ShoutInput!) {
|
mutation UpdateShoutMutation($shoutId: Int!, $shoutInput: ShoutInput!) {
|
||||||
updateShout(shoutId: $shoutId, shoutInput: $shoutInput) {
|
updateShout(shout_id: $shoutId, shout_input: $shoutInput) {
|
||||||
error
|
error
|
||||||
shout {
|
shout {
|
||||||
id
|
id
|
||||||
|
|
Loading…
Reference in New Issue
Block a user