commentable
Arguments
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
acceptsNewComments (
Boolean!)
Whether the object can have new comments or not
comments (
[Comment!]!)
commentsHaveAlignment (
Boolean!)
Whether the object comments have alignment or not
commentsHaveVotes (
Boolean!)
Whether the object comments have votes or not
hasComments (
Boolean!)
Check if the commentable has comments
id (
ID!)
The commentable's ID
totalCommentsCount (
Int!)
The number of comments in all levels this resource holds
type (
String!)
The commentable's class name. i.e. Decidim::ParticipatoryProcess
userAllowedToComment (
Boolean!)
Check if the current user can comment