Decidim 0.30.0.rc3

Metadecidim API documentation

Explore the API interactively with GraphiQL

Comment

A comment

Implements

Fields

alignment (Int)

The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'

alreadyReported (Boolean!)

Check if the current user has reported the comment

author (Author!)

The resource author

body (String!)

The comment message

downVoted (Boolean!)

Check if the current user has downvoted the comment

downVotes (Int!)

The number of comment's downVotes

formattedBody (String!)

The comment message ready to display (it is expected to include HTML)

formattedCreatedAt (String!)

The creation date of the comment in relative format

hasComments (Boolean!)

Check if the commentable has comments

id (ID!)

The Comment's unique ID

sgid (String!)

The Comment's signed global id

upVoted (Boolean!)

Check if the current user has upvoted the comment

upVotes (Int!)

The number of comment's upVotes

userAllowedToComment (Boolean!)

Check if the current user can comment

type (String!)

The commentable's class name. i.e. Decidim::ParticipatoryProcess

acceptsNewComments (Boolean!)

Whether the object can have new comments or not

commentsHaveAlignment (Boolean!)

Whether the object comments have alignment or not

commentsHaveVotes (Boolean!)

Whether the object comments have votes or not

totalCommentsCount (Int!)

The number of comments in all levels this resource holds

comments ([Comment!]!)

The list of replies in this comment

Argument Type Description
orderBy String

Order the comments

singleCommentId String

ID of the single comment to look at

createdAt (DateTime)

The date and time this object was created

updatedAt (DateTime)

The date and time this object was updated