Skip to main content

CurrentUserLearningPathMilestoneCompletionsBySlug

Returns the milestones that a user has completed for a learning path. The results of this query can be affected by providing an authToken header to set a user for the operation.

CurrentUserLearningPathMilestoneCompletionsBySlug(
slug: Slug!
): [LearningPathAction]

Directives

authAccess

This requires the current user to be in STUDENT role.

Arguments

CurrentUserLearningPathMilestoneCompletionsBySlug.slug ● Slug! non-null scalar

Type

LearningPathAction object

Examples

Run in Postman

Query:

CurrentUserLearningPathMilestoneCompletionsBySlug($slug: Slug!) {
CurrentUserLearningPathMilestoneCompletionsBySlug(slug: $slug) {
id
learningPath {
...LearningPathFragment
}
milestone {
...MilestoneFragment
}
type
source
user {
...UserFragment
}
timestamp
}
}

Variables:

{
"slug": "Slug"
}

Response:

{
"data": {
"CurrentUserLearningPathMilestoneCompletionsBySlug": [
{
"id": "58ccb96c-8e90-4464-86e0-f284442981df",
"learningPath": "LearningPath",
"milestone": "Milestone",
"type": "xyz789",
"source": "abc123",
"user": "User",
"timestamp": "2023-12-20T16:58:58.782Z"
}
]
}
}