Decidim 0.30.0.rc3

Metadecidim 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

addComment (Comment)

Add a new comment to a commentable

Argument Type Description
alignment Int

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

The default value is 0.

body String!

The comments's body

userGroupId ID

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

id (ID!)

The Commentable's unique ID