UserRecentContent
Returns content that the user has most recently viewed (maximum of 25 returned). The results of this query can be affected by providing an authToken header to set a user for the operation. This query has an additional cost of 4 points.
UserRecentContent(
limit: Int
): [Content!]!
Directives
complexity
This has an additional cost of
4
points.
authAccess
This requires the current user to be in
STUDENT
role.
Arguments
UserRecentContent.limit
● Int
scalar
Type
Content
object
Examples
Query:
UserRecentContent($limit: Int) {
UserRecentContent(limit: $limit) {
id
createdAt
updatedAt
expiresAt
courseGroup
title
sessionTitle
ribbon {
...RibbonFragment
}
slug
kind
metaTitle
language
metaDescription
displayCourse
displayCourseSlug
displayDate
availabilityStatus
asset
assetAltText
freeWithRegistration
priceInCents
suggestedRetailPriceInCents
alternativePricingType
alternativePricingRef
rating
description
sku
hasChildren
tags {
...TagFragment
}
status
customFields
authors
authorsAndInstructors
contentTypeLabel
contentTypeAssetAspectRatio
waitlistCount
seatsLimit
enrollmentCount
source
publishDate
courseStartDate
courseEndDate
enrollmentStartDate
enrollmentEndDate
timeZone
meetingStartDate
coursePresold
courseGracePeriodEnded
currentUserMayReschedule
isActive
embeddedEnabled
altDescriptionBody
hideCourseDescription
currentUserUnmetCoursePrerequisites
currentUserUnmetLearningPathPrerequisites
currentUserDueDate
url
waitlistingEnabled
waitlistingTriggered
canAddToQueue
bulkPurchasingEnabled
location {
...LocationFragment
}
state
acceptBadgeUrl
issuedAt
badgeUrl
credlyBadgeExpiresAt
imageUrl
badgeName
}
}
Variables:
{
"limit": 447
}
Response:
{
"data": {
"UserRecentContent": [
{
"id": "ab740d4e-f094-4810-b491-319dff54bdd2",
"createdAt": "2024-08-21T18:16:47.178Z",
"updatedAt": "2024-02-21T18:16:47.178Z",
"expiresAt": "2024-02-21T18:16:47.178Z",
"courseGroup": "abc123",
"title": "abc123",
"sessionTitle": "abc123",
"ribbon": "Ribbon",
"slug": "Slug",
"kind": "courseGroup",
"metaTitle": "xyz789",
"language": "abc123",
"metaDescription": "abc123",
"displayCourse": "ab740d4e-f094-4810-b491-319dff54bdd2",
"displayCourseSlug": "Slug",
"displayDate": "2024-02-21T18:16:47.178Z",
"availabilityStatus": "abc123",
"asset": "abc123",
"assetAltText": "xyz789",
"freeWithRegistration": false,
"priceInCents": 447,
"suggestedRetailPriceInCents": 447,
"alternativePricingType": "membership",
"alternativePricingRef": 447,
"rating": 447,
"description": "abc123",
"sku": "abc123",
"hasChildren": false,
"tags": [
"Tag"
],
"status": "draft",
"customFields": "{}",
"authors": [
"xyz789"
],
"authorsAndInstructors": [
"abc123"
],
"contentTypeLabel": "abc123",
"contentTypeAssetAspectRatio": "xyz789",
"waitlistCount": 447,
"seatsLimit": 447,
"enrollmentCount": 447,
"source": "abc123",
"publishDate": "2024-08-21T18:16:47.178Z",
"courseStartDate": "2024-08-21T18:16:47.178Z",
"courseEndDate": "2024-02-21T18:16:47.178Z",
"enrollmentStartDate": "2024-08-21T18:16:47.178Z",
"enrollmentEndDate": "2024-02-21T18:16:47.178Z",
"timeZone": "xyz789",
"meetingStartDate": "2024-02-21T18:16:47.178Z",
"coursePresold": true,
"courseGracePeriodEnded": false,
"currentUserMayReschedule": true,
"isActive": true,
"embeddedEnabled": true,
"altDescriptionBody": "abc123",
"hideCourseDescription": true,
"currentUserUnmetCoursePrerequisites": [
"ab740d4e-f094-4810-b491-319dff54bdd2"
],
"currentUserUnmetLearningPathPrerequisites": [
"ab740d4e-f094-4810-b491-319dff54bdd2"
],
"currentUserDueDate": "2024-08-21T18:16:47.178Z",
"url": "AbsoluteOrRelativeURL",
"waitlistingEnabled": true,
"waitlistingTriggered": false,
"canAddToQueue": true,
"bulkPurchasingEnabled": true,
"location": "Location",
"state": "abc123",
"acceptBadgeUrl": "xyz789",
"issuedAt": "2024-08-21T18:16:47.178Z",
"badgeUrl": "abc123",
"credlyBadgeExpiresAt": "2024-08-21T18:16:47.178Z",
"imageUrl": "abc123",
"badgeName": "abc123"
}
]
}
}