Cap Collectif Developers - GraphQL API

ProposalForm

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.

Fetches an object given its ID

Fields

id (ID!)

The ID of an object

proposals (ProposalConnection!)

A list of proposals associated to the object.

Argument Type Description
after String

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

author ID

ID of a User to filter by. If non-null, only proposals authored by this user will be returned.

first Int

Returns the first n elements from the list.

The default value is 100.

includeDraft Boolean

(ROLE_ADMIN only) Select also draft proposals.

The default value is false.

orderBy [ProposalOrder]

Ordering options for proposals returned from the connection.

The default value is [ { "field": "PUBLISHED_AT", "direction": "ASC" } ].

trashedStatus ProposalTrashedStatus

If non-null, filters proposals with the given trashed status (eg: visible, not visible).

The default value is "NOT_TRASHED".