UserCourseCollaborations
Returns the number of collaborations (comments and threads) that a user has made to a course. The results of this query can be affected by providing an authToken header to set a user for the operation.
UserCourseCollaborations(
courseId: ID!
): Int!
Directives
authAccess
This requires the current user to be in
STUDENT
role.
Arguments
UserCourseCollaborations.courseId
● ID!
non-null scalar
Type
Int
scalar
The
Int
scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Examples
Query:
UserCourseCollaborations($courseId: ID!) {
UserCourseCollaborations(courseId: $courseId)
}
Variables:
{
"courseId": "58ccb96c-8e90-4464-86e0-f284442981df"
}
Response:
{
"data": {
"UserCourseCollaborations": 678
}
}