?
documents
A map outcome that emits one or more mapped documents from an object.
documents(list: MappedDocument | MappedDocument[]) → MapOutcome
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
MappedDocument | MappedDocument[]
RequiredThe document(s) this object produces.
Emit a document
return documents([{ externalId: id, title, markdown }]);