Skip to content

No docs on inferred column types #8827

Open

Description

@SimonCockx

Documentation Issue

What was unclear or otherwise insufficient?

I cannot find information on which column type is used if there is no explicit type given in a @Column() decorator. Does a string result in varchar or text? If it's a varchar, with what length? Similar for other types.

Recommended Fix

Add a table explaining which column type is used for every possible TypeScript type (or what happens if no appropriate column type exists).

Are you willing to resolve this issue by submitting a Pull Request?

  • ✖️ Yes, I have the time, and I know how to start.
  • ✖️ Yes, I have the time, but I don't know how to start. I would need guidance.
  • ✖️ No, I don’t have the time, but I can support (using donations) development.
  • ✅ No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.

Activity

  1. github-actions commented on Sep 18, 2025

    @github-actions

    TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).

    As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.

    🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
    If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.

  2. SimonCockx commented on Sep 18, 2025

    @SimonCockx
    Author

    I believe this is still relevant.

  3. reopened this on Sep 18, 2025
  4. gioboa commented on Sep 18, 2025

    @gioboa
    Collaborator

    Thanks for the feedback, may I ask you to drop a PR for that?

  5. SimonCockx commented on Sep 18, 2025

    @SimonCockx
    Author

    Hi @gioboa, thanks for reopening. My occupation has changed, so I'm not actively working with Type ORM at the moment. I just double checked that the documentation still does not contain this information, so I do think the issue is still relevant, but I won't be digging into this at this time, sorry.

  6. PreAgile commented on Mar 31, 2026

    @PreAgile
    Contributor

    I can take this.

    I'll add a focused section to the column types documentation explaining how TypeORM infers database column types from TypeScript property types when type is omitted in @Column(), including a per-driver mapping table (PostgreSQL, MySQL/MariaDB, SQLite, SQL Server) with default lengths where applicable.

  7. ElwinErnst commented on Apr 7, 2026

    @ElwinErnst

    Opened a PR to address this issue: #12317

    It adds documentation explaining how TypeORM infers column types when no explicit type is provided in @Column(). Happy to adjust if needed 👍

  8. added
    good first issue
    and removed on Apr 13, 2026
  9. LeonxLJX commented on Sep 1, 2026

    @LeonxLJX

    I'd like to take this one (No docs on inferred column types). I'll look into the root cause and follow up with a PR. (claiming via @LeonxLJX)

  10. LeonxLJX commented on Sep 1, 2026

    @LeonxLJX

    I'd like to take this one (No docs on inferred column types). I'll look into the root cause and follow up with a PR. (claiming via @LeonxLJX)

  11. LeonxLJX commented on Sep 1, 2026

    @LeonxLJX

    I'd like to take this one (No docs on inferred column types). I'll dig into the root cause and follow up with a PR shortly. (claiming via @LeonxLJX)

  12. dikshit-n commented on Sep 16, 2026

    @dikshit-n

    @ElwinErnst Hi! Just checking in on PR #12317 for the inferred column types documentation. It's been a while since the last update. Is this still in progress? I'm happy to help if you need any assistance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions