Comment
No description
type Comment {
body: String
createdAt: DateTime
creator: User
downVoters(
after: String
before: String
first: Int
last: Int
): CommentDownVotersConnection
downVotesCount: Int
hasUserVoted(userId: ID!): HasUserVotedComment
id: ID!
post: Post
upVoters(
after: String
before: String
first: Int
last: Int
): CommentUpVotersConnection
upVotesCount: Int
updatedAt: DateTime
}
Fields
Comment.body ● String scalar
Body of the comment.
Comment.createdAt ● DateTime scalar
Date time at the time the comment was created.
Comment.creator ● User object
User who created the comment.
Comment.downVoters ● CommentDownVotersConnection object
GraphQL connection to traverse through the users that down voted the comment.
Comment.downVoters.after ● String scalar
Comment.downVoters.before ● String scalar
Comment.downVoters.first ● Int scalar
Comment.downVoters.last ● Int scalar
Comment.downVotesCount ● Int scalar
Total number of down votes on the comment.
Comment.hasUserVoted ● HasUserVotedComment object
Check if a specific user has voted on this comment and return vote details.
Comment.hasUserVoted.userId ● ID! non-null scalar
The ID of the user to check if they have voted on this comment.
Comment.id ● ID! non-null scalar
Global identifier of the comment.
Comment.post ● Post object
Post which the comment belongs to.
Comment.upVoters ● CommentUpVotersConnection object
GraphQL connection to traverse through the users that up voted the comment.
Comment.upVoters.after ● String scalar
Comment.upVoters.before ● String scalar
Comment.upVoters.first ● Int scalar
Comment.upVoters.last ● Int scalar
Comment.upVotesCount ● Int scalar
Total number of up votes on the comment.
Comment.updatedAt ● DateTime scalar
Date time at the time the comment was last updated.
Returned By
comment query ● createComment mutation ● createCommentVote mutation ● deleteComment mutation ● deleteCommentVote mutation ● updateComment mutation ● updateCommentVote mutation
Member Of
PostCommentsConnectionEdge object