-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ViewColumn does not take a transformer input #4339
Comments
Same issue here i have a simple-array stored in the DB i want to get this from a view in the array form, instead i get a string :/ |
Came across this issue today. Seems like there isn't much difference in hydrating data between Quick and dirty workaround: |
To avoid the unsightly @ViewColumn({
transformer: { from: val => new BigNumber(val) },
} as ColumnOptions)
big: BigNumber; |
Write a |
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:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
I'd like to be able to have my view entity transform the value before returning it to my JS. Is there a way to do this?
The text was updated successfully, but these errors were encountered: