?
passthrough
A map outcome that ingests the object as-is, without transforming it.
passthrough(options?) → MapOutcome
Takes the object as it stands, letting the platform extract and chunk it the way add would, rather than mapping it into a shaped document. Use it for objects that are already documents (a PDF, a page of text) sitting in a source that otherwise needs mapping.
Take the object as-is
if (object.contentType === 'application/pdf') return passthrough();