AddResourceToQueue
Adds a resource to the queue of content for the current user so it can be viewed at a later time. Returns true if the content has been successfully added. The user must be given access to the course before it can be added to their queue. The results of this mutation can be affected by providing an authToken header to set a user for the operation.
AddResourceToQueue(
  resourceType: ContentKind
  resourceId: ID!
): Boolean!
Directives
authAccess
This requires the current user to be in
STUDENTrole.
Arguments
AddResourceToQueue.resourceType ● ContentKind enum
The type of content that is to be added to the queue of the current user.
AddResourceToQueue.resourceId ● ID! non-null scalar
The ID for the resource that is to be added to the queue of the current user. For example, this could be a course ID that the user would like to view at a later time.
Type
Boolean scalar
The
Booleanscalar type representstrueorfalse.
Examples
Query:
AddResourceToQueue(
 $resourceType: ContentKind,
 $resourceId: ID!
) {
 AddResourceToQueue(
   resourceType: $resourceType,
   resourceId: $resourceId
 )
}
Variables:
{
 "resourceType": "courseGroup",
 "resourceId": "0e99a117-e3b6-40a6-867c-6b3bbc166b41"
}
Response:
{
  "data": {
    "AddResourceToQueue": true
  }
}