Decidim 0.28.4

decidim.barcelona API documentation

Explore the API interactively with GraphiQL

commentable

A commentable

Input fields

id (String!)

The commentable's ID

type (String!)

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

locale (String)

The locale for which to get the comments text

toggleTranslations (Boolean)

Whether the user asked to toggle the machine translations or not.

Return fields

id (ID!)

The Commentable's unique ID

addComment (Comment)

Add a new comment to a commentable

Argument Type Description
body String!

The comments's body

alignment Int

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

The default value is 0.

userGroupId ID

The comment's user group id. Replaces the author.