getQuestionsWithInitialAnswerValuesForQuestionnaire
Get the list of questions to ask when answering the questionnaire for the target, with any previously provided answer as the initial answer value.
Arguments
The questionnaire slug to return questions and initial answer values for.
The account number for account-targeted questionnaires, or the property ID for property-targeted questionnaires.
Returns
QuestionAndInitialAnswerValueConnectionTypeConnectionPaginator of questions with initial answer values.
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 GetQuestionsWithInitialAnswerValuesForQuestionnaire(
$after: String,
$before: String,
$first: Int,
$last: Int,
$questionnaireSlug: String!,
$targetId: ID!
) {
getQuestionsWithInitialAnswerValuesForQuestionnaire(
after: $after,
before: $before,
first: $first,
last: $last,
questionnaireSlug: $questionnaireSlug,
targetId: $targetId
) {
edgeCount
edges {
...QuestionAndInitialAnswerValueConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"first": 10,
"last": 10,
"questionnaireSlug": "would-easy-whom-fact-again",
"targetId": "94458120"
}
Response
{
"data": {
"getQuestionsWithInitialAnswerValuesForQuestionnaire": {
"edgeCount": 20,
"edges": [QuestionAndInitialAnswerValueConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 82
}
}
}