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