webapp/src/graphql/mutation/core/reaction-create.ts
2024-07-26 18:49:15 +03:00

29 lines
453 B
TypeScript

import { gql } from '@urql/core'
export default gql`
mutation CreateReactionMutation($reaction: ReactionInput!) {
create_reaction(reaction: $reaction) {
error
reaction {
id
body
kind
created_at
reply_to
stat {
rating
}
shout {
id
slug
}
created_by {
name
slug
pic
}
}
}
}
`