getAnswerHistoryForQuestionnaire
Get every recorded answer change for the questionnaire and target, oldest first. A cleared answer is returned with a null answer.
Arguments
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 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
}
}
}