Skip to main content

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 STUDENT role.

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 Boolean scalar type represents true or false.

Examples

Run in Postman

Query:

AddResourceToQueue(
$resourceType: ContentKind,
$resourceId: ID!
) {
AddResourceToQueue(
resourceType: $resourceType,
resourceId: $resourceId
)
}

Variables:

{
"resourceType": "courseGroup",
"resourceId": "58ccb96c-8e90-4464-86e0-f284442981df"
}

Response:

{
"data": {
"AddResourceToQueue": false
}
}