Survey Object

Root Connection

All Survey objects of an account are accessible by a query on the root connection surveys. Such a query will return a SurveyConnection!, which contains the Survey objects in its nodes field.

surveys (SurveyConnection!)

Root connection for retrieving Survey records.

Argument Type Description
after String

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

before String

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

filter SurveyFilter

Filter to determine which Survey records are returned.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

order [SurveyOrder!]

Order of the Survey records returned.

view SurveyView

View name.

The default value is current_account.

Fields

The fields in this section list which values can be retrieved when querying Survey records.

account (Account)

The account this record belongs to.

completion (String)

Content shown to respondents on completion of the survey.

createdAt (ISO8601Timestamp)

The date and time at which the record was created.

disabled (Boolean)

Whether the survey may not be used.

id (ID!)

Unique identifier of the record.

introduction (String)

Introduction content of the survey.

name (String)

Name of the survey.

pictureUri (String)

The hyperlink to the image file for the record.

source (String)

An identifier for the client application submitting the resource or the name of an external system.

sourceID (String)

The unique identifier of the resource in an external system.

updatedAt (ISO8601Timestamp)

The date and time of the last update of the record. If the record has no updates it contains the createdAt value.

Connections

The connection fields in this section allow (paged) access to objects related to a specific Survey record. The actual objects will be in the nodes field of the connection.

completionAttachments (AttachmentConnection)

Files and inline images linked to the Completion field.

Argument Type Description
after String

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

before String

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

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

introductionAttachments (AttachmentConnection)

Files and inline images linked to the Introduction field.

Argument Type Description
after String

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

before String

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

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

questions (SurveyQuestionConnection)

Questions of this survey.

Argument Type Description
after String

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

before String

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

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

translations (TranslationConnection)

Translations associated with this object.

Argument Type Description
after String

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

before String

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

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

Implements

Survey implements the following interfaces. This means that fragments defined on these interfaces may be used in queries returning a Survey.