gql-todos
This commit is contained in:
parent
5700968caf
commit
3bcdfa582c
|
@ -1,10 +1,9 @@
|
|||
import { gql } from '@urql/core'
|
||||
|
||||
// TODO: sync with backend
|
||||
|
||||
export default gql`
|
||||
mutation ArticleMutation($article: Shout!) {
|
||||
createArticle(article: $article) {
|
||||
mutation CreateShoutMutations($shout: ShoutInput!) {
|
||||
createShout(input: $shout) {
|
||||
error
|
||||
shout {
|
||||
_id: slug
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import { gql } from '@urql/core'
|
||||
|
||||
// TODO: sync with backend
|
||||
|
||||
export default gql`
|
||||
mutation ArticleMutation($article_id: Int!) {
|
||||
destroyArticle(article: $article_id) {
|
||||
mutation DeleteShoutMutation($shout: String!) {
|
||||
deleteShout(slug: $shout) {
|
||||
error
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { gql } from '@urql/core'
|
||||
|
||||
export default gql`
|
||||
mutation ArticleMutation($article: Shout!) {
|
||||
updateArticle(article: $article) {
|
||||
mutation UpdateShoutMutation($shout: Shout!) {
|
||||
updateShout(input: $shout) {
|
||||
error
|
||||
shout {
|
||||
_id: slug
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
import { gql } from '@urql/core'
|
||||
|
||||
// TODO: sync with backend
|
||||
|
||||
export default gql`
|
||||
mutation CreateReactionMutation($reaction: ReactionInput!) {
|
||||
createReaction(reaction: $reaction) {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { gql } from '@urql/core'
|
||||
|
||||
// TODO: sync with backend
|
||||
|
||||
export default gql`
|
||||
mutation DeleteReactionMutation($id: Int!) {
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
import { gql } from '@urql/core'
|
||||
|
||||
// TODO: sync with backend
|
||||
|
||||
export default gql`
|
||||
mutation UpdateReactionMutation($reaction: ReactionInput!) {
|
||||
updateReaction(reaction: $reaction) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user