Entity schemas documentation
See original GitHub issueIssue type:
[x] question [ ] bug report [ ] feature request [x] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[x] mysql
/ mariadb
[ ] oracle
[ ] postgres
[ ] sqlite
[ ] sqljs
[ ] react-native
TypeORM version:
[ ] latest
[x] @next
[ ] 0.x.x
(or put your version here)
Hey how well implemented are entity schemas at this point? I see some documentation has emerged recently. I would like to see some examples how different decorators get translated in the schema files like GeneratedColumn, CreateDateColumn, UpdateDateColumn.
If i remove the decorators on the entities and create schema files targeting these entities instead then will my existing code (repositories/query-builders/enitity-manager) work without needing any additional modifications?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
Any example how to apply the separate schema to an entity?
Hey @jebbdomingo , I managed to solve it like this:
Whereas
User
is theInterface
andUserSchema
is theEntitySchema
that describes theUser
. RespectiveUserSchema
may look like this:again, the
User
in this schema description is the previously mentionedInterface
!Maybe this helps?