documents
A map outcome that emits one or more mapped documents from an object.
The outcome that turns an object into corpus documents. Return one MappedDocument or an array; each carries a stable externalId, a title, and its markdown body. It is the common case a mapper's map returns.
Parameters
list
RequiredThe document(s) this object produces.
Emit a document
return documents([{ externalId: id, title, markdown }]);