getQuestionsWithAnswersForQuestionnaire
Get a list of questions with answers for the questionnaire and target.
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 GetQuestionsWithAnswersForQuestionnaire(
$after: String,
$before: String,
$first: Int,
$last: Int,
$questionnaireSlug: String!,
$targetId: ID!
) {
getQuestionsWithAnswersForQuestionnaire(
after: $after,
before: $before,
first: $first,
last: $last,
questionnaireSlug: $questionnaireSlug,
targetId: $targetId
) {
edgeCount
edges {
...QuestionAndAnswerConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"first": 10,
"last": 10,
"questionnaireSlug": "sure-poor-community-technology-against",
"targetId": "59406188"
}
Response
{
"data": {
"getQuestionsWithAnswersForQuestionnaire": {
"edgeCount": 63,
"edges": [QuestionAndAnswerConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 91
}
}
}