Cap Collectif Developers - GraphQL API

Proposal

This part of the schema is currently available for developers to preview. During this preview period, the API may change without any advance notice. Please see Schema previews for more details.

Represents a user's contribution to a collect step.

Implements

Fields

address (GoogleMapsAddress)

The address of the proposal.

analyses ([ProposalAnalysis!]) ROLE_USER

Analysts's analysis of the proposal.

assessment (ProposalAssessment) ROLE_USER

The supervisor's assessment on the analysis of the proposal.

author (User!)

Identifies the author of the contribution.

body (HTML)

Identifies the body of the proposal.

bodyText (String)

Identifies the body of the contribution rendered to text.

category (ProposalCategory)

The category of the proposal, related to the ProposalForm.

createdAt (DateTime!)

Identifies the date and time when the object was created.

decision (ProposalDecision) ROLE_USER

The decision of the decision-maker on the analysis of the proposal.

draft (Boolean!)

Whether or not the entity is a draft.

id (ID!)

The ID of an object.

notPublishedReason (NotPublishedReason)

Reason that the entity is not published.

publishableUntil (DateTime)

Identifies when the entity can no more be published.

published (Boolean!)

Whether or not the entity is published.

publishedAt (DateTime)

Identifies when the entity was published at.

reference (String!)

Identifies the unique reference of the proposal.

responses ([Response]!)

Identifies the responses of the proposal.

selections ([ProposalSelection!]!)

List of selections (step an status) of the proposal.

summary (String)

Identifies the summary of the contribution.

theme (Theme)

The theme of the proposal.

title (String!)

Identifies the proposal title.

trashed (Boolean!)

Whether or not the contribution is trashed.

trashedAt (DateTime)

Identifies the moment the moderator trashed the contribution.

trashedReason (String)

Identifies the reason why the moderator trashed the contribution.

trashedStatus (TrashableStatus)

Identifies the trashed visibility.

undraftAt (DateTime)

Identifies when the entity was undraft at.

updatedAt (DateTime)

Identifies the date and time when the object was last updated.

url (URI!)

The URL to this resource.

votes (ProposalVoteConnection!)

List of votes of the proposal.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

first Int

Returns the first n elements from the list.

The default value is 100.

orderBy ProposalVoteOrder

The ordering options for votes.

The default value is { "field": "PUBLISHED_AT", "direction": "DESC" }.