Mutation
mutation CreateComment($input: CreateCommentInput!) {
createComment(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",
"postId": "id"
}
}Response
{
"data": {
"createComment": {
"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
createComment
Create a comment on a post
MUTATION
createComment(input: CreateCommentInput!): CreateCommentPayloadArguments
input
CreateCommentInput!
required
Parameters for CreateComment
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
comment
errors
[String!]!
Mutation
mutation CreateComment($input: CreateCommentInput!) {
createComment(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",
"postId": "id"
}
}Response
{
"data": {
"createComment": {
"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