Function Signature
A custom transformation is a JavaScript function module that conforms to the following interface. Your function receives a single input document, described by $content
, and can generate zero, one, or many output documents.
function yourTransform(content, context)