Skip to main content

UserCourseCompletionProgress

Returns the status of a users progess on the complete criteria of 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 5 points.

UserCourseCompletionProgress(
id: ID!
): [CourseCompletionCriteriaProgress!]

Directives

complexity

This has an additional cost of 5 points.

authAccess

This requires the current user to be in STUDENT role.

Arguments

UserCourseCompletionProgress.id ● ID! non-null scalar

Type

CourseCompletionCriteriaProgress object

Examples

Run in Postman

Query:

UserCourseCompletionProgress($id: ID!) {
UserCourseCompletionProgress(id: $id) {
type
required
completed
percent
}
}

Variables:

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

Response:

{
"data": {
"UserCourseCompletionProgress": [
{
"type": "coursePercentViewed",
"required": [
"58ccb96c-8e90-4464-86e0-f284442981df"
],
"completed": [
"58ccb96c-8e90-4464-86e0-f284442981df"
],
"percent": 678
}
]
}
}