> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Coursework



**Kind**: `object`

## Implements

- `DatabaseRecord`
- `Node`

## Fields

**`childCount`**: `Int!`

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

**Arguments:**

- `includeUnpublished`: `Boolean` = 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`: `[CourseworkStatus!]` — Count only children with one of these visibility statuses, matching
`children(statuses:)`. An empty list applies no filter.

---

**`children`**: `CourseworkConnection!`

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` = 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`: `[CourseworkStatus!]` — Only children with one of these visibility statuses. Narrows what the viewer
may already see. An empty list applies no filter.

---

**`completionCriteria`**: `CourseworkCompletionCriteria!`

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`**: `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`**: `Coursework`

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` = 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`: `QuizAttemptStatus!` — The attempt status to count members by.

---

**`quizAttempts`**: `QuizAttemptConnection!`

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.
- `statuses`: `[QuizAttemptStatus!]` — Optionally filter to one or more attempt statuses.

---

**`quizQuestions`**: `PollConnection!`

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`**: `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.

---

**`status`**: `CourseworkStatus!`

Visibility status.

---

**`title`**: `String`

---

**`type`**: `CourseworkType!`

The kind of coursework item.

---

**`unlockingCriteria`**: `CourseworkUnlockingCriteria!`

When the item becomes available to a member.

---

**`updatedAt`**: `ISO8601DateTime!`

---

**`url`**: `String!`

Canonical web URL of the coursework item.



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.