LearningPathCurrentUserAwardTotals
Returns the awards a learner has earned for a learning path. The results of this query can be affected by providing an authToken header to set a user for the operation.
LearningPathCurrentUserAwardTotals(
slug: Slug!
): [AwardTotal]
Directives
authAccess
This requires the current user to be in
STUDENT
role.
Arguments
LearningPathCurrentUserAwardTotals.slug
● Slug!
non-null scalar
Type
AwardTotal
object
Examples
Query:
LearningPathCurrentUserAwardTotals($slug: Slug!) {
LearningPathCurrentUserAwardTotals(slug: $slug) {
resource {
... on Course {
...CourseFragment
}
... on LearningPath {
...LearningPathFragment
}
}
resourceId
awardType {
...AwardTypeFragment
}
total
}
}
Variables:
{
"slug": "Slug"
}
Response:
{
"data": {
"LearningPathCurrentUserAwardTotals": [
{
"resource": "Course",
"resourceId": "58ccb96c-8e90-4464-86e0-f284442981df",
"awardType": "AwardType",
"total": 236.56
}
]
}
}