Skip to main content

QueryContents

This query has an additional cost of 3 points.

QueryContents(
ids: [ID!]!
): [Content!]!

Directives

complexity

This has an additional cost of 3 points.

Arguments

QueryContents.ids ● [ID!]! non-null scalar

Type

Content object

Examples

Run in Postman

Query:

QueryContents($ids: [ID!]!) {
QueryContents(ids: $ids) {
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:

{
"ids": [
"ab740d4e-f094-4810-b491-319dff54bdd2"
]
}

Response:

{
"data": {
"QueryContents": [
{
"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": "xyz789",
"sessionTitle": "xyz789",
"ribbon": "Ribbon",
"slug": "Slug",
"kind": "courseGroup",
"metaTitle": "xyz789",
"language": "abc123",
"metaDescription": "xyz789",
"displayCourse": "ab740d4e-f094-4810-b491-319dff54bdd2",
"displayCourseSlug": "Slug",
"displayDate": "2024-08-21T18:16:47.178Z",
"availabilityStatus": "abc123",
"asset": "abc123",
"assetAltText": "xyz789",
"freeWithRegistration": true,
"priceInCents": 447,
"suggestedRetailPriceInCents": 447,
"alternativePricingType": "membership",
"alternativePricingRef": 447,
"rating": 447,
"description": "abc123",
"sku": "abc123",
"hasChildren": true,
"tags": [
"Tag"
],
"status": "draft",
"customFields": "{}",
"authors": [
"xyz789"
],
"authorsAndInstructors": [
"xyz789"
],
"contentTypeLabel": "abc123",
"contentTypeAssetAspectRatio": "abc123",
"waitlistCount": 447,
"seatsLimit": 447,
"enrollmentCount": 447,
"source": "xyz789",
"publishDate": "2024-08-21T18:16:47.178Z",
"courseStartDate": "2024-08-21T18:16:47.178Z",
"courseEndDate": "2024-08-21T18:16:47.178Z",
"enrollmentStartDate": "2024-02-21T18:16:47.178Z",
"enrollmentEndDate": "2024-08-21T18:16:47.178Z",
"timeZone": "xyz789",
"meetingStartDate": "2024-08-21T18:16:47.178Z",
"coursePresold": false,
"courseGracePeriodEnded": true,
"currentUserMayReschedule": false,
"isActive": true,
"embeddedEnabled": false,
"altDescriptionBody": "xyz789",
"hideCourseDescription": false,
"currentUserUnmetCoursePrerequisites": [
"ab740d4e-f094-4810-b491-319dff54bdd2"
],
"currentUserUnmetLearningPathPrerequisites": [
"ab740d4e-f094-4810-b491-319dff54bdd2"
],
"currentUserDueDate": "2024-02-21T18:16:47.178Z",
"url": "AbsoluteOrRelativeURL",
"waitlistingEnabled": false,
"waitlistingTriggered": false,
"canAddToQueue": true,
"bulkPurchasingEnabled": true,
"location": "Location",
"state": "xyz789",
"acceptBadgeUrl": "xyz789",
"issuedAt": "2024-08-21T18:16:47.178Z",
"badgeUrl": "abc123",
"credlyBadgeExpiresAt": "2024-02-21T18:16:47.178Z",
"imageUrl": "abc123",
"badgeName": "abc123"
}
]
}
}