content
- Description:
- Functionality related to course content
- Source:
Classes
Methods
(static) exports.getDescendants(findFn, rootItem) → {Promise.<Array.<Object>>}
- Description:
- Finds all descendant content items for a given root using BFS traversal
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
findFn |
function | Function to query content items (receives query object, returns array) |
rootItem |
Object | The root item document |
Returns:
Array of descendant content items
- Type
- Promise.<Array.<Object>>