Decidim 0.31.0.rc1

Beta Try API documentation

Explore the API interactively with GraphiQL

initiatives

Lists all initiatives

Arguments

filter (ParticipatoryProcessFilter)

This argument lets you filter the results

order (ParticipatoryProcessSort)

This argument lets you order the results

Return fields

answer (TranslatedField)

The answer of the initiative

answerUrl (String)

The answer url of the initiative

answeredAt (DateTime)

The date this initiative was answered

author (Author!)

The initiative author

committeeMembers ([InitiativeCommitteeMemberType])

The committee members list

description (TranslatedField)

The description of this initiative.

firstProgressNotificationAt (DateTime)

The date when the first progress notification was sent

initiativeSupportsCount (Int)
Deprecation notice

initiativeSupportsCount has been collapsed in onlineVotes parameter

The number of supports in this initiative

initiativeVotesCount (Int)
Deprecation notice

initiativeVotesCount has been collapsed in onlineVotes parameter

The number of votes in this initiative

offlineVotes (Int)

The number of offline votes in this initiative

onlineVotes (Int)

The number of online votes in this initiative

publishedAt (DateTime!)

The time this initiative was published

secondProgressNotificationAt (DateTime)

The date when the second progress notification was sent

signatureEndDate (Date!)

The signature end date

signatureStartDate (Date!)

The signature start date

signatureType (String)

Signature type of the initiative

slug (String!)

The slug of the initiative

state (String)

Current status of the initiative

url (String)

The URL of this initiative

acceptsNewComments (Boolean!)

Whether the object can have new comments or not

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

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

reference (String)

The reference for this record

followsCount (Int)

The number of followers of the resource

createdAt (DateTime)

The date and time this object was created

updatedAt (DateTime)

The date and time this object was updated

initiativeType (InitiativeType)

The object's initiative type

attachments ([Attachment]!)

This object's attachments

scope (Scope)

The object's scope

allowsSteps (Boolean!)

The participatory space allows steps

components ([ComponentInterface])

Lists the components this space contains.

Argument Type Description
filter ComponentFilter

Provides several methods to filter the results

order ComponentSort

Provides several methods to order the results

hasSteps (Boolean!)

The participatory space allows steps

manifest (ParticipatorySpaceManifest!)

The manifest information for the participatory space.

stats ([Statistic])

The statistics collection of this participatory space

title (TranslatedField!)

The graphql_name of this participatory space.