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
Custom decorator? #2711
Comments
I don't see how creating custom decorator is related to ORM. Could you describe your issue(if it is related to typeorm)? |
I mean a column decorator, like |
It really depends on what you want to do. Look at existing decorator - it just stores some metadata which is used later in ORM logic. You can use e.g. custom subscriber to act on yours metadata. typeorm/src/decorator/columns/UpdateDateColumn.ts Lines 8 to 18 in bcd5d82
|
Yea, but it doesn't seem to have the flexibility to add your custom metadata, ORM later uses |
Issue type:
[ ] question
[ ] bug report
[x] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x]
postgres
[ ]
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:
How if I want to create a custom decorator say for example a blameable decorator?
The text was updated successfully, but these errors were encountered: