Skip to main content

CommentStatusUpdatedPayload

CommentStatusUpdatedPayload is returned when a Comment has it's status updated after it was created.

type CommentStatusUpdatedPayload {
newStatus: COMMENT_STATUS!
oldStatus: COMMENT_STATUS!
moderator: User
comment: Comment!
}

Fields

CommentStatusUpdatedPayload.newStatus ● COMMENT_STATUS! non-null enum

newStatus is the new status assigned to the Comment. This status may not match the status provided by comment.status due to race conditions in the data loaders.

CommentStatusUpdatedPayload.oldStatus ● COMMENT_STATUS! non-null enum

oldStatus is the old status that was previously assigned to the Comment.

CommentStatusUpdatedPayload.moderator ● User object

moderator is the User that updated the Comment's status. If null, then the system assigned the new Comment status (for example, when a comment is edited by the author, and now contains a banned word).

CommentStatusUpdatedPayload.comment ● Comment! non-null object

comment is the updated Comment after the status has been updated.

Returned by

commentStatusUpdated subscription