Mutation
mutation UpdateComment($input: UpdateCommentInput!) {
updateComment(input: $input) {
clientMutationId
comment {
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
author {
avatarUrl
badges {
__typename
}
conversations {
__typename
}
customFieldResponses {
__typename
}
dailyVisitStreak {
__typename
}
directMessages {
__typename
}
}
bodyHtml
bodyText
cheerCount
createdAt
}
errors
}
}Variables
{
"input": {
"body": "string",
"id": "id"
}
}Response
{
"data": {
"updateComment": {
"clientMutationId": "string",
"comment": {
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"author": {
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"customFieldResponses": {
"__typename": "MemberCustomFieldResponseConnection"
},
"dailyVisitStreak": {
"__typename": "DailyVisitStreak"
},
"directMessages": {
"__typename": "PrivateConversationConnection"
}
},
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1,
"createdAt": "value"
},
"errors": [
"string"
]
}
}
}Mutations
updateComment
Update an existing comment
MUTATION
updateComment(input: UpdateCommentInput!): UpdateCommentPayloadArguments
input
UpdateCommentInput!
required
Parameters for UpdateComment
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
comment
errors
[String!]!
Mutation
mutation UpdateComment($input: UpdateCommentInput!) {
updateComment(input: $input) {
clientMutationId
comment {
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
author {
avatarUrl
badges {
__typename
}
conversations {
__typename
}
customFieldResponses {
__typename
}
dailyVisitStreak {
__typename
}
directMessages {
__typename
}
}
bodyHtml
bodyText
cheerCount
createdAt
}
errors
}
}Variables
{
"input": {
"body": "string",
"id": "id"
}
}Response
{
"data": {
"updateComment": {
"clientMutationId": "string",
"comment": {
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"author": {
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"customFieldResponses": {
"__typename": "MemberCustomFieldResponseConnection"
},
"dailyVisitStreak": {
"__typename": "DailyVisitStreak"
},
"directMessages": {
"__typename": "PrivateConversationConnection"
}
},
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1,
"createdAt": "value"
},
"errors": [
"string"
]
}
}
}⌘I