33 lines
528 B
TypeScript
33 lines
528 B
TypeScript
|
import { gql } from '@urql/core'
|
||
|
|
||
|
export default gql`
|
||
|
mutation CreateReactionMutation($reaction: ReactionInput!) {
|
||
|
createReaction(reaction: $reaction) {
|
||
|
error
|
||
|
reaction {
|
||
|
id
|
||
|
createdBy {
|
||
|
slug
|
||
|
name
|
||
|
userpic
|
||
|
}
|
||
|
body
|
||
|
kind
|
||
|
range
|
||
|
createdAt
|
||
|
shout
|
||
|
replyTo {
|
||
|
id
|
||
|
createdBy {
|
||
|
slug
|
||
|
userpic
|
||
|
name
|
||
|
}
|
||
|
body
|
||
|
kind
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`
|