Skip to main content

Arguments

after : String
before : String
first : Int
last : Int
questionnaireSlug : String! required

The questionnaire slug to return the answer history for.

targetId : ID! required

The account number for account-targeted questionnaires, or the property ID for property-targeted questionnaires.

Returns

AnswerHistoryEntryConnectionTypeConnection

Paginator of answer history entries.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can query questionnaire answers

Query Complexity

3

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

query GetAnswerHistoryForQuestionnaire( $after: String, $before: String, $first: Int, $last: Int, $questionnaireSlug: String!, $targetId: ID! ) { getAnswerHistoryForQuestionnaire( after: $after, before: $before, first: $first, last: $last, questionnaireSlug: $questionnaireSlug, targetId: $targetId ) { edgeCount edges { ...AnswerHistoryEntryConnectionTypeEdgeFragment } pageInfo { ...PageInfoFragment } totalCount } }

Variables

{ "after": "YXJyYXljb25uZWN0aW9uOjEw=", "before": "YXJyYXljb25uZWN0aW9uOjEw=", "first": 10, "last": 10, "questionnaireSlug": "dog-want-single-resource-major", "targetId": "87840518" }

Response

{ "data": { "getAnswerHistoryForQuestionnaire": { "edgeCount": 71, "edges": [AnswerHistoryEntryConnectionTypeEdge], "pageInfo": PageInfo, "totalCount": 99 } } }