Skip to content

Commit 6d343a8

Browse files
committed
no-mistakes(document): Updated field-types.md TypeScript flattened section: derived flattened field owns no columns and exposes no flat keys. CHANGELOG already covered the fix. No other stale docs found.
1 parent aacba4c commit 6d343a8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎docs/features/field-types.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,9 @@ function `meta migrate` uses. The Row and Insert types, the Zod schemas, the fil
365365
allowlists, the OpenAPI parameters and the form and grid generators all expose those flat keys;
366366
a client reads and writes `addressStreet`, not a nested `address` object. A flattened field
367367
declared on a TPH subtype keeps one column named for the field, as `meta migrate` creates it.
368-
A flattened field on a write-through entity is refused at `meta gen`
369-
([source-kinds.md](source-kinds.md)).
368+
A flattened field that carries an `origin.*` is derived: it owns no columns, so it exposes no flat
369+
keys in any of those surfaces, and a write cannot set them. A flattened field on a write-through
370+
entity is refused at `meta gen` ([source-kinds.md](source-kinds.md)).
370371

371372
```ts
372373
// generated/acme/blog/Author.ts

0 commit comments

Comments
 (0)