Skip to main content
objectCoursework

Implements

Fields

childCount
Int!

Number of direct child items, counting the same items children lists to this viewer.

Arguments
includeUnpublished
Boolean
default:false

Include children that are not posted. For a Network Host without a role in the course, requires host:read:network_posts, host:read:network, or host:write:network_posts.

statuses

Count only children with one of these visibility statuses, matching children(statuses:). An empty list applies no filter.

Direct child items (sections/lessons/quizzes under this one), ordered by position. Children that are not posted are listed for a Host or moderator of the course, or when includeUnpublished is true for a Network Host token holding host:read:network_posts, host:read:network, or host:write:network_posts.

Arguments
after
String

Returns the elements in the list that come after the specified cursor.

before
String

Returns the elements in the list that come before the specified cursor.

first
Int

Returns the first n elements from the list.

includeUnpublished
Boolean
default:false

Include children that are not posted. For a Network Host without a role in the course, requires host:read:network_posts, host:read:network, or host:write:network_posts.

last
Int

Returns the last n elements from the list.

statuses

Only children with one of these visibility statuses. Narrows what the viewer may already see. An empty list applies no filter.

completionCriteria

How the item is marked complete for a member. An item set to PRIMARY_MEDIA reports it only while its primary media slot holds Mighty audio or video, and reports BUTTON otherwise.

course

The course this item belongs to.

createdAt
ISO8601DateTime!
descriptionHtml
String

HTML body with formatted mentions, hashtags, and links; internal classes and attributes are stripped on external API surfaces.

descriptionText
String

Plain text body with HTML stripped.

id
ID!

ID of the object.

imageUrl
String

Representative image URL for the item, falling back to a default course header image when the item has no display image of its own. Null instead for a section or the overview with neither a custom thumbnail nor primary media, in a Network with continuous playback enabled: such an item has no image at all.

isAudio
Boolean!

True when the item's content leads with audio, either as the header media or in the body. Never true at the same time as isVideo.

isVideo
Boolean!

True when the item's content leads with a video. Never true at the same time as isAudio: audio header media wins, then video, then body audio. False on a native mobile client that has not declared it can render a native video in the primary media slot, which is served no primaryMedia node either.

Parent section or overview; null for the overview itself, and null when the parent is not posted unless the viewer is a Host or moderator of its course, or includeUnpublished is true for a Network Host token holding host:read:network_posts, host:read:network, or host:write:network_posts.

Arguments
includeUnpublished
Boolean
default:false

Return an unpublished parent. For a Network Host without a role in the course, requires host:read:network_posts, host:read:network, or host:write:network_posts.

position
Int

Sort position within its siblings (lower comes first). Compare only between items sharing the same parent.

quizAttemptMemberCount
Int

Number of distinct members with an active membership who have at least one attempt in the given status. Null for non-quiz coursework and for viewers who are not a host of the quiz's space.

Arguments
status

The attempt status to count members by.

Members' attempts at this quiz, newest first. Hosts and moderators see every member's attempts (member identity and scores); members see only their own. Empty for non-quiz coursework and signed-out viewers.

Arguments
after
String

Returns the elements in the list that come after the specified cursor.

before
String

Returns the elements in the list that come before the specified cursor.

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

Optionally filter to one or more attempt statuses.

quizQuestions

Questions in this quiz, in display order. Empty for non-quiz coursework.

Arguments
after
String

Returns the elements in the list that come after the specified cursor.

before
String

Returns the elements in the list that come before the specified cursor.

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

quizStats

Aggregate results for this quiz. Null for non-quiz coursework and for viewers who are not a host or moderator of the quiz's space.

resourceId
ID!

Resource ID for this object, for interop with the Admin API.

Visibility status.

title
String

The kind of coursework item.

unlockingCriteria

When the item becomes available to a member.

updatedAt
ISO8601DateTime!
url
String!

Canonical web URL of the coursework item.