Skip to main content

PagesCompletedByCourse

Returns the pages the current user has completed for a course. The results of this query can be affected by providing an authToken header to set a user for the operation. This query has an additional cost of 3 points.

PagesCompletedByCourse(
courseId: ID!
): [PageResource!]!

Directives

complexity

This has an additional cost of 3 points.

authAccess

This requires the current user to be in STUDENT role.

Arguments

PagesCompletedByCourse.courseId ● ID! non-null scalar

The ID of the course.

Type

PageResource union

Examples

Run in Postman

Query:

PagesCompletedByCourse($courseId: ID!) {
PagesCompletedByCourse(courseId: $courseId) {
... on TextPage {
...TextPageFragment
}
... on QuizPage {
...QuizPageFragment
}
... on ListRollPage {
...ListRollPageFragment
}
... on TestPage {
...TestPageFragment
}
... on SurveyPage {
...SurveyPageFragment
}
... on TallyPage {
...TallyPageFragment
}
... on PresentationPage {
...PresentationPageFragment
}
... on AssignmentPage {
...AssignmentPageFragment
}
... on SlideshowPage {
...SlideshowPageFragment
}
... on WorkbookPage {
...WorkbookPageFragment
}
... on PDFViewerPage {
...PDFViewerPageFragment
}
... on VideoPage {
...VideoPageFragment
}
... on ScormPage {
...ScormPageFragment
}
... on ArticlePage {
...ArticlePageFragment
}
... on MeetingPage {
...MeetingPageFragment
}
... on FlipCardPage {
...FlipCardPageFragment
}
... on MatchPairPage {
...MatchPairPageFragment
}
... on AudioPage {
...AudioPageFragment
}
... on RecipePage {
...RecipePageFragment
}
... on NotebookPage {
...NotebookPageFragment
}
... on HighlightZonePage {
...HighlightZonePageFragment
}
... on GeneralPage {
...GeneralPageFragment
}
}
}

Variables:

{
"courseId": "58ccb96c-8e90-4464-86e0-f284442981df"
}

Response:

{
"data": {
"PagesCompletedByCourse": [
"TextPage"
]
}
}