Skip to main content

LoadSuperQuizInfo

This query loads quiz questions and other data about the entered quiz(s). This query allows you to fetch questions for multiple quizzes at the same time. The results of this query can be affected by providing an authToken header to set a user for the operation.

LoadSuperQuizInfo(
courseId: ID
includeCorrectAnswers: Boolean
quizzes: [ID!]!
): SuperQuiz!

Directives

authAccess

This requires the current user to be in STUDENT role.

Arguments

LoadSuperQuizInfo.courseId ● ID scalar

LoadSuperQuizInfo.includeCorrectAnswers ● Boolean scalar

Flag to include questions the user previously got correct.

LoadSuperQuizInfo.quizzes ● [ID!]! non-null scalar

The IDs of the Quizzes user selects.

Type

SuperQuiz object

Contains quiz questions and other data about the entered quiz(s).

Examples

Run in Postman

Query:

LoadSuperQuizInfo(
$courseId: ID,
$includeCorrectAnswers: Boolean,
$quizzes: [ID!]!
) {
LoadSuperQuizInfo(
courseId: $courseId,
includeCorrectAnswers: $includeCorrectAnswers,
quizzes: $quizzes
) {
quizzes
questions {
...QuizQuestionFragment
}
totalTimeInSeconds
questionSkipEnabled
timerEnabled
navigationDisabled
displayAllHints
timePerQuestionInSeconds
}
}

Variables:

{
"courseId": "58ccb96c-8e90-4464-86e0-f284442981df",
"includeCorrectAnswers": true,
"quizzes": [
"58ccb96c-8e90-4464-86e0-f284442981df"
]
}

Response:

{
"data": {
"LoadSuperQuizInfo": {
"quizzes": [
"58ccb96c-8e90-4464-86e0-f284442981df"
],
"questions": [
"QuizQuestion"
],
"totalTimeInSeconds": 678,
"questionSkipEnabled": true,
"timerEnabled": true,
"navigationDisabled": false,
"displayAllHints": true,
"timePerQuestionInSeconds": 678
}
}
}