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
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(
$questionnaireSlug: String!,
$targetId: ID!
) {
getQuestionsWithInitialAnswerValuesForQuestionnaire(
questionnaireSlug: $questionnaireSlug,
targetId: $targetId
) {
answerType
deprecated
initialAnswerValue
mandatory
possibleAnswers
question
slug
}
}
Variables
{
"questionnaireSlug": "care-suggest-shake-effort-many",
"targetId": "70329669"
}
Response
{
"data": {
"getQuestionsWithInitialAnswerValuesForQuestionnaire": [
{
"answerType": "TEXT",
"deprecated": true,
"initialAnswerValue": "line-here-decide-maintain-throw",
"mandatory": true,
"possibleAnswers": "hope-parent-short-receive-entire",
"question": "soon-option-bill-fish-against",
"slug": "power-across-thing-rather-why"
}
]
}
}