Cap Collectif Developers - GraphQL API

Questionnaire

A questionnaire is a series of questions that users can answer.

Implements

Fields

id (ID!)

The ID of an object.

participants (UserConnection!)

A list of users that have replied to the questionnaire.

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.

questions ([Question!]!)

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.

The list of questions of the questionnaire.

replies (UserReplyConnection!)

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.

A list of replies to the questionnaire.

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.

includeDraft Boolean

(ROLE_ADMIN only) Select also draft replies.

The default value is false.

includeUnpublished Boolean

(ROLE_ADMIN only) Select also unpublished replies.

The default value is false.

title (String!)

Identifies the questionnaire title.

userHasReply (Boolean!)

Whether the user has reply to a questionnaire.

Argument Type Description
login String!

The user's login (for example, an email).