Mutation
mutation CreateReaction($input: CreateReactionInput!) {
createReaction(input: $input) {
clientMutationId
errors
reaction {
baseEmoji
comment {
assets {
__typename
}
author {
__typename
}
bodyHtml
bodyText
cheerCount
createdAt
}
createdAt
emoji
id
post {
answerCount
assets {
__typename
}
body
bodyHtml
bodyText
cheerCount
}
}
}
}Variables
{
"input": {
"emoji": "string",
"targetId": "id"
}
}Response
{
"data": {
"createReaction": {
"clientMutationId": "string",
"errors": [
"string"
],
"reaction": {
"baseEmoji": "string",
"comment": {
"assets": [
{
"__typename": "Asset"
}
],
"author": {
"__typename": "User"
},
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1,
"createdAt": "value"
},
"createdAt": "value",
"emoji": "string",
"id": "id",
"post": {
"answerCount": 1,
"assets": [
{
"__typename": "Asset"
}
],
"body": "string",
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1
}
}
}
}
}Mutations
createReaction
Add an emoji reaction to a post or comment
MUTATION
createReaction(input: CreateReactionInput!): CreateReactionPayloadArguments
input
CreateReactionInput!
required
Parameters for CreateReaction
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
reaction
Mutation
mutation CreateReaction($input: CreateReactionInput!) {
createReaction(input: $input) {
clientMutationId
errors
reaction {
baseEmoji
comment {
assets {
__typename
}
author {
__typename
}
bodyHtml
bodyText
cheerCount
createdAt
}
createdAt
emoji
id
post {
answerCount
assets {
__typename
}
body
bodyHtml
bodyText
cheerCount
}
}
}
}Variables
{
"input": {
"emoji": "string",
"targetId": "id"
}
}Response
{
"data": {
"createReaction": {
"clientMutationId": "string",
"errors": [
"string"
],
"reaction": {
"baseEmoji": "string",
"comment": {
"assets": [
{
"__typename": "Asset"
}
],
"author": {
"__typename": "User"
},
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1,
"createdAt": "value"
},
"createdAt": "value",
"emoji": "string",
"id": "id",
"post": {
"answerCount": 1,
"assets": [
{
"__typename": "Asset"
}
],
"body": "string",
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1
}
}
}
}
}⌘I