ReferenceAsk

skip

A map outcome that drops the object, with a reason recorded.
skip(reason: string) MapOutcome

Drops an object the corpus should not hold, recording why. Skipped objects land in the job's quarantine, so a high skip rate pauses the run and the reasons are there to read. Use it for objects that are not documents at all.

Parameters
reason
string
RequiredWhy the object was dropped; kept in the job's quarantine.
Drop a non-document
if (!record.body) return skip('empty body');