Repository navigation
docs: add column type inference explanation - #12317
ElwinErnst wants to merge 4 commits into
Conversation
Code Review by Qodo
|
|
All review comments addressed in the latest update ✅ |
|
Persistent review updated to latest commit 2ff1d03 |
|
Thanks for the feedback. I intentionally avoided documenting specific defaults (such as varchar length or exact string → varchar/text mapping) because this behavior is driver-specific and not consistently defined across all databases supported by TypeORM. Instead, I clarified that:
Documenting fixed defaults here could be misleading for users, especially across different drivers or configurations. If there is a specific source of truth in the codebase that defines consistent defaults per driver, I’d be happy to extend this section with more precise details. |
|
Persistent review updated to latest commit 2e0745c |
|
|
Persistent review updated to latest commit bb1c65c |



Description of change
This PR adds documentation explaining how TypeORM infers column types when no explicit type is provided in the
@Column()decorator.Currently, this behavior is not clearly documented, which can lead to confusion for developers when defining entities without specifying column types.
What was added
@Column()without explicit typeWhy this change is needed
The current documentation does not explain how TypeORM determines column types when the
typeoption is omitted. This PR provides a clear and practical overview to help developers understand the behavior and avoid unexpected results.How it was verified
Pull-Request Checklist
masterbranchFixes #8827Fixes #8827