Skip to main content

CourseGroupBySlug

This query returns the Course Group associated with the slug.

CourseGroupBySlug(
slug: Slug!
): CourseGroup

Arguments

CourseGroupBySlug.slug ● Slug! non-null scalar

The slug for the Course Group being retrieved.

Type

CourseGroup object

Examples

Run in Postman

Query:

CourseGroupBySlug($slug: Slug!) {
CourseGroupBySlug(slug: $slug) {
id
createdAt
displayCourse {
...CourseFragment
}
displayBundle {
...DisplayBundleFragment
}
courses {
...CourseFragment
}
asset
assetAltText
detailAsset
detailAssetAltText
videoAsset
tabs {
...CourseTabFragment
}
description
title
archived
metaTitle
metaDescription
language
slug
rating
ratingsCount
relatedCourseGroups {
...CourseGroupFragment
}
relatedQuery
relatedQuerySort
relatedQueryLimit
relatedQuerySignature
relatedShowImageAsset
relatedShowDescription
externalPurchaseUrl
externalDetailUrl
layout {
...LayoutFragment
}
hasParentCourseGroup
tags {
...TagFragment
}
customFields
authors
source
isbn
ribbon
contentType {
...ContentTypeFragment
}
kind
availabilityStatus
ownedByActiveScope
allowRescheduling
currentUserMayReschedule
}
}

Variables:

{
"slug": "Slug"
}

Response:

{
"data": {
"CourseGroupBySlug": {
"id": "ab740d4e-f094-4810-b491-319dff54bdd2",
"createdAt": "2024-08-21T18:16:47.178Z",
"displayCourse": "Course",
"displayBundle": "DisplayBundle",
"courses": [
"Course"
],
"asset": "xyz789",
"assetAltText": "abc123",
"detailAsset": "abc123",
"detailAssetAltText": "abc123",
"videoAsset": "xyz789",
"tabs": [
"CourseTab"
],
"description": "xyz789",
"title": "xyz789",
"archived": true,
"metaTitle": "xyz789",
"metaDescription": "xyz789",
"language": "xyz789",
"slug": "Slug",
"rating": 447,
"ratingsCount": 447,
"relatedCourseGroups": [
"CourseGroup"
],
"relatedQuery": "abc123",
"relatedQuerySort": "xyz789",
"relatedQueryLimit": 447,
"relatedQuerySignature": "xyz789",
"relatedShowImageAsset": false,
"relatedShowDescription": false,
"externalPurchaseUrl": "xyz789",
"externalDetailUrl": "xyz789",
"layout": "Layout",
"hasParentCourseGroup": false,
"tags": [
"Tag"
],
"customFields": "{}",
"authors": [
"xyz789"
],
"source": "xyz789",
"isbn": "abc123",
"ribbon": "Slug",
"contentType": "ContentType",
"kind": "microCourse",
"availabilityStatus": "abc123",
"ownedByActiveScope": true,
"allowRescheduling": false,
"currentUserMayReschedule": true
}
}
}