routier-collection / core/src / serializePersistResult
Function: serializePersistResult()
serializePersistResult(
result,schemas):SerializedResponse
Defined in: core/src/plugins/wire/persist.ts:103
Serializes the ECHO of a save — the part the change tracker cannot do without.
A save's result is not a receipt. It carries the rows as the database wrote them, including any identity the database assigned, and the change tracker matches each one back to the addition that produced it. Returning a count instead would leave every inserted entity without its key.