Comment
Requires access scope or
access scope.
A comment on an article.
Anchor to Fields and connectionsFields and connections
- Anchor to articlearticle•Article
The article associated with the comment.
- •Comment
Author!non-null The comment’s author.
- Anchor to bodybody•String!non-null
The content of the comment.
- Anchor to bodyHtmlbody•HTML!non-null
Html The content of the comment, complete with HTML formatting.
- Anchor to createdAtcreated•Date
At Time!non-null The date and time when the comment was created.
- Anchor to eventsevents•Event
Connection!non-null The paginated list of events associated with the host subject.
- •ID!non-null
A globally-unique ID.
- •String
The IP address of the commenter.
- Anchor to isPublishedis•Boolean!non-null
Published Whether or not the comment is published.
- Anchor to publishedAtpublished•Date
At Time The date and time when the comment was published.
- Anchor to statusstatus•Comment
Status!non-null The status of the comment.
- Anchor to updatedAtupdated•Date
At Time The date and time when the comment was last updated.
- Anchor to userAgentuser•String
Agent The user agent of the commenter.
Anchor to QueriesQueries
- •query
Returns a Comment resource by ID.
- •query
List of the shop's comments.
Anchor to MutationsMutations
- •mutation
Approves a comment.
- •ID!required
The ID of the comment to be approved.
Arguments
- Anchor to commentcomment•Comment
The comment that was approved.
- Anchor to userErrorsuser•[Comment
Errors Approve User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Marks a comment as not spam.
- •ID!required
The ID of the comment to be marked as not spam.
Arguments
- Anchor to commentcomment•Comment
The comment that was marked as not spam.
- Anchor to userErrorsuser•[Comment
Errors Not Spam User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Marks a comment as spam.
- •ID!required
The ID of the comment to be marked as spam.
Arguments
- Anchor to commentcomment•Comment
The comment that was marked as spam.
- Anchor to userErrorsuser•[Comment
Errors Spam User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields