getQuestionsWithAnswersForQuestionnaire
Get a list of questions with answers for the questionnaire and target.
Arguments
Returns
[QuestionAndAnswerType!]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 GetQuestionsWithAnswersForQuestionnaire(
$questionnaireSlug: String!,
$targetId: ID!
) {
getQuestionsWithAnswersForQuestionnaire(
questionnaireSlug: $questionnaireSlug,
targetId: $targetId
) {
answer
answerType
deprecated
mandatory
possibleAnswers
question
slug
}
}
Variables
{
"questionnaireSlug": "again-study-news-politics-control",
"targetId": "49780845"
}
Response
{
"data": {
"getQuestionsWithAnswersForQuestionnaire": [
{
"answer": "building-four-return-represent-view",
"answerType": "TEXT",
"deprecated": true,
"mandatory": true,
"possibleAnswers": "instead-stop-prove-field-onto",
"question": "think-suffer-measure-open-alone",
"slug": "drug-something-increase-common-nature"
}
]
}
}