Repository save doesn't return autogenerated columns
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
Solution: Repository save doesn't return autogenerated columns
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.
Trust Score
7 verifications
- 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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep