@rebasepro/server-postgres 0.9.1-canary.a57c262 → 0.9.1-canary.ad25bc0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,19 +12,12 @@ import { PostgresCollectionRegistry } from "./collections/PostgresCollectionRegi
12
12
  export interface SerializedEntityData {
13
13
  /** Scalar column values ready for INSERT/UPDATE. */
14
14
  scalarData: Record<string, unknown>;
15
- /**
16
- * Inverse relation updates that must be applied to target tables.
17
- *
18
- * No address here: the row being written does not know its own. These are
19
- * applied by `PersistService`, which addresses them with the id it holds —
20
- * the one it was given for an update, or the one the INSERT returned — and
21
- * that is the authority. This item used to carry a `currentId` derived from
22
- * the *input* values, which nothing ever read.
23
- */
15
+ /** Inverse relation updates that must be applied to target tables. */
24
16
  inverseRelationUpdates: Array<{
25
17
  relationKey: string;
26
18
  relation: Relation;
27
19
  newValue: unknown;
20
+ currentId?: string | number;
28
21
  }>;
29
22
  /** JoinPath relation updates that require multi-hop writes. */
30
23
  joinPathRelationUpdates: Array<{