Entity / foldkit-entity/lowering

foreignOf

function · packages/entity/src/reading.ts:113

function foreignOf(
  reading: Reading,
  operators: MemoryOperators,
): ForeignImplementations

The implementations in operators of each foreign operation reading calls, by id@version, as metakit's readers take them, so two versions of one operator each run their own. Each runs as the memory interpreter ran it: text holding a NUL refused, a throw refused (failed, by metakit), and an answer its output schema does not admit refused in a checked table. It is told no collation: an operator that compares text is given it folded.