Skip to main content

CreateCommentInput

CreateCommentInput provides the input for the createComment Mutation.

input CreateCommentInput {
nudge: Boolean
storyID: ID!
body: String!
clientMutationId: String!
media: CreateCommentMediaInput
rating: Int
}

Fields

CreateCommentInput.nudge ● Boolean scalar

nudge when true will instead return an error related to recoverable moderation faults such as a toxic comment or spam comment to provide user feedback to nudge the user to correct the comment.

CreateCommentInput.storyID ● ID! non-null scalar

storyID is the ID of the Story where we are creating a comment on.

CreateCommentInput.body ● String! non-null scalar

body is the Comment body, the content of the Comment.

CreateCommentInput.clientMutationId ● String! non-null scalar

clientMutationId is required for Relay support.

CreateCommentInput.media ● CreateCommentMediaInput input

media is the optional media attachment to be added to a Comment.

CreateCommentInput.rating ● Int scalar

rating is the optional rating that can be added to a Comment.

Member Of

createComment mutation