FG
🗄️ Databases

Repository save doesn't return autogenerated columns

Freshabout 5 years ago
Mar 14, 20260 views
Confidence Score80%
80%

Problem

Issue type: [ ] question [x] bug report [ ] feature request [ ] documentation issue Database system/driver: [ ] `cordova` [ ] `mongodb` [ ] `mssql` [ ] `mysql` / `mariadb` [ ] `oracle` [x] `postgres` [ ] `cockroachdb` [ ] `sqlite` [ ] `sqljs` [ ] `react-native` [ ] `expo` TypeORM version: [ ] `latest` [x] `@next` [ ] `0.x.x` (or put your version here) Hi, I've noticed that Repository.save doesn't return several of auto-generated field Model Route.ts [code block] Method call [code block] For some reason `id` and `createdAt` are not returned while `updatedAt` is value is returned

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
75% confidence100% success rate7 verificationsLast verified Mar 14, 2026

Solution: Repository save doesn't return autogenerated columns

Low Risk

Running in to this issue too. We tend to save large objects with many relations all at once in our project, so this is a bit of a pain to work around. It would be nice to see this issue fixed, as it seems to be a pretty major bug.

75

Trust Score

7 verifications

100% success
  1. 1

    Running in to this issue too. We tend to save large objects with many relations

    Running in to this issue too. We tend to save large objects with many relations all at once in our project, so this is a bit of a pain to work around. It would be nice to see this issue fixed, as it seems to be a pretty major bug.

Validation

Resolved in typeorm/typeorm GitHub issue #4090. Community reactions: 31 upvotes.

Verification Summary

Worked: 7
Partial: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

typeormormtypescriptbugdriver:-postgresneeds-tests