Comment
Comment is a comment left by a User on an Story or another Comment as a reply.
type Comment {
id: ID!
body: String
revision: CommentRevision
revisionHistory: [CommentRevision!]!
createdAt: Time!
author: User
status: COMMENT_STATUS!
initialStatus: COMMENT_STATUS
statusHistory(
first: Int = 10
after: Cursor
): CommentModerationActionConnection!
parentCount: Int!
allChildComments(
first: Int = 10
orderBy: COMMENT_SORT = CREATED_AT_DESC
): CommentsConnection!
ancestorIDs: [String]!
depth: Int!
replyCount: Int!
replies(
first: Int = 10
orderBy: COMMENT_SORT = CREATED_AT_DESC
after: Cursor
flatten: Boolean
refreshStream: Boolean
): CommentsConnection!
parent: Comment
rootParent: Comment
parents(
last: Int = 1
before: Cursor
): CommentsConnection!
editing: EditInfo!
actionCounts: ActionCounts!
reactions(
first: Int = 10
after: Cursor
): ReactionsConnection!
flags(
first: Int = 10
after: Cursor
): FlagsConnection!
illegalContent(
first: Int = 10
after: Cursor
): FlagsConnection!
viewerActionPresence: ActionPresence
story: Story!
permalink: String!
tags: [Tag!]!
deleted: Boolean
canModerate: Boolean!
canReply: Boolean!
site: Site!
rating: Int
seen: Boolean
embeddedAt: Time
}
Fields
Comment.id
● ID!
non-null scalar
id is the identifier of the Comment.
Comment.body
● String
scalar
body is the content of the Comment, and is an alias to the body of the
revision.body
.
Comment.revision
● CommentRevision
object
revision is the current revision of the Comment's body.
Comment.revisionHistory
● [CommentRevision!]!
non-null object
revisionHistory stores the previous CommentRevision's, with the most recent edit last.
Comment.createdAt
● Time!
non-null scalar
createdAt is the date in which the Comment was created.
Comment.author
● User
object
author is the User that authored the Comment.
Comment.status
● COMMENT_STATUS!
non-null enum
status represents the Comment's current status.
Comment.initialStatus
● COMMENT_STATUS
enum
initialStatus represents the Comment's status when it was initially created.
Comment.statusHistory
● CommentModerationActionConnection!
non-null object
statusHistory returns a CommentModerationActionConnection that will list the history of moderator actions performed on the Comment, with the most recent last.
Comment.statusHistory.first
● Int
scalar
Comment.statusHistory.after
● Cursor
scalar
Comment.parentCount
● Int!
non-null scalar
parentCount is the number of direct parents for this Comment. Currently this value is the same as depth.
Comment.allChildComments
● CommentsConnection!
non-null object
allChildComments is a CommentsConnection that includes all comments that are children of a comment (i.e. that have the comment included in their ancestorIDs)
Comment.allChildComments.first
● Int
scalar
Comment.allChildComments.orderBy
● COMMENT_SORT
enum
Comment.ancestorIDs
● [String]!
non-null scalar
ancestorIDs
Comment.depth
● Int!
non-null scalar
depth is the number of levels that a given comment is deep.
Comment.replyCount
● Int!
non-null scalar
replyCount is the number of replies. Only direct replies to this Comment are counted. Removed comments are included in this count.
Comment.replies
● CommentsConnection!
non-null object
replies will return the replies to this Comment.
Comment.replies.first
● Int
scalar
Comment.replies.orderBy
● COMMENT_SORT
enum
Comment.replies.after
● Cursor
scalar
Comment.replies.flatten
● Boolean
scalar
Comment.replies.refreshStream
● Boolean
scalar
Comment.parent
● Comment
object
parent is the immediate parent of a given comment.
Comment.rootParent
● Comment
object
rootParent is the highest level parent Comment. This Comment would have been left on the Story itself.
Comment.parents
● CommentsConnection!
non-null object
parents returns a CommentsConnection that allows accessing direct parents of the given Comment.
Comment.parents.last
● Int
scalar
Comment.parents.before
● Cursor
scalar
Comment.editing
● EditInfo!
non-null object
editing returns details about the edit status of a Comment.
Comment.actionCounts
● ActionCounts!
non-null object
actionCounts stores the counts of all the actions for the Comment.
Comment.reactions
● ReactionsConnection!
non-null object
reactions is the actual Flags that were left by the Users or the system.
Comment.reactions.first
● Int
scalar
Comment.reactions.after
● Cursor
scalar
Comment.flags
● FlagsConnection!
non-null object
flags is the actual Flags that were left by the Users or the system.
Comment.flags.first
● Int
scalar
Comment.flags.after
● Cursor
scalar
Comment.illegalContent
● FlagsConnection!
non-null object
illegalContent is the illegal content flags left by users.
Comment.illegalContent.first
● Int
scalar
Comment.illegalContent.after
● Cursor
scalar
Comment.viewerActionPresence
● ActionPresence
object
viewerActionPresence stores the presence information for all the actions left by the current User on this Comment.
Comment.story
● Story!
non-null object
story is the Story that the Comment was written on.
Comment.permalink
● String!
non-null scalar
The permalink for this comment.
Comment.tags
● [Tag!]!
non-null object
tags are the list of tags assigned to the Comment.
Comment.deleted
● Boolean
scalar
deleted is whether the comment has been deleted.
Comment.canModerate
● Boolean!
non-null scalar
canModerate returns true if the current user can moderate this Comment.
Comment.canReply
● Boolean!
non-null scalar
canReply returns true if the comment is able to be responded to.
Comment.site
● Site!
non-null object
site is the Site referenced by the Story for this Comment.
Comment.rating
● Int
scalar
rating is the optional rating that is attached to the Comment.
Comment.seen
● Boolean
scalar
seen determines whether a comment has been seen by the user already.
Comment.embeddedAt
● Time
scalar
embeddedAt is the date at which the comment was first embedded.
Returned By
comment
query
Member Of
ApproveCommentPayload
object ● Comment
object ● CommentCreatedPayload
object ● CommentEdge
object ● CommentEditedPayload
object ● CommentEnteredModerationQueuePayload
object ● CommentEnteredPayload
object ● CommentFeaturedPayload
object ● CommentLeftModerationQueuePayload
object ● CommentModerationAction
object ● CommentReleasedPayload
object ● CommentReplyCreatedPayload
object ● CommentRevision
object ● CommentsConnection
object ● CommentStatusUpdatedPayload
object ● CreateCommentDontAgreePayload
object ● CreateCommentFlagPayload
object ● CreateCommentReactionPayload
object ● CreateIllegalContentPayload
object ● DSAReport
object ● EditCommentPayload
object ● FeatureCommentPayload
object ● Flag
object ● MarkCommentsAsSeenPayload
object ● Notification
object ● NotificationDSAReportDetails
object ● RejectCommentPayload
object ● RemoveCommentDontAgreePayload
object ● RemoveCommentReactionPayload
object ● Story
object ● UnfeatureCommentPayload
object