Skip to main content

UserEarnedBadgeBoard

Returns the earned and unearned badges for a user. The results of this query can be affected by providing an authToken header to set a user for the operation.

UserEarnedBadgeBoard: EarnedBadgeBoard!

Directives

authAccess

This requires the current user to be in STUDENT role.

Type

EarnedBadgeBoard object

Examples

Run in Postman

Query:

UserEarnedBadgeBoard {
UserEarnedBadgeBoard {
earnedBadges {
...EarnedBadgeFragment
}
unearnedBadges {
...BadgeFragment
}
}
}

Variables:

{ul}

Response:

{
"data": {
"UserEarnedBadgeBoard": {
"earnedBadges": [
"EarnedBadge"
],
"unearnedBadges": [
"Badge"
]
}
}
}