Comment

A comment posted by a User.

Implements

Connections

replies (CommentConnection!)

Lookup comments that were posted on the comment itself.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

order CommentsOrder

Define order for the Comments.

The default value is NEWEST.

votes (VoteConnection!)
Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

createdAfter DateTime

Select Votes which were created after the given date and time.

createdBefore DateTime

Select Votes which were created before the given date and time.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

Fields

body (String!)

Body of the comment.

createdAt (DateTime!)

Identifies the date and time when comment was created.

id (ID!)

ID of the comment.

isVoted (Boolean!)

Whether the Viewer has voted for the object or not.

parent (Comment)

Comment on which this comment was posted(null in case of top level comments).

parentId (ID)

ID of Comment on which this comment was posted(null in case of top level comments).

url (String!)

Public URL of the comment.

user (User!)

User who posted the comment.

userId (ID!)

ID of User who posted the comment.

votesCount (Int!)

Number of votes that the object has currently.