Skip to main content

UserCourseProgress

Returns the total views, total time, and percentage completed of a course for a user. 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.

UserCourseProgress(
id: ID!
): UserProgress

Directives

complexity

This has an additional cost of 5 points.

authAccess

This requires the current user to be in STUDENT role.

Arguments

UserCourseProgress.id ● ID! non-null scalar

Type

UserProgress object

Examples

Run in Postman

Query:

UserCourseProgress($id: ID!) {
UserCourseProgress(id: $id) {
totalViews
totalTime
percentComplete
}
}

Variables:

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

Response:

{
"data": {
"UserCourseProgress": {
"totalViews": 678,
"totalTime": 678,
"percentComplete": 678
}
}
}