feat(RelationDecorators): allow to pass string instead of typeFunction#4195
feat(RelationDecorators): allow to pass string instead of typeFunction#4195pleerock merged 1 commit intotypeorm:masterfrom
Conversation
|
Cool, tests failed for Node.js 9! I'm not sure if that's related to my changes... Error in Edit: So I ran the tests locally on Node v9.11.2 and they passed :/ |
|
Thanks, it's a good change. We should have it much earlier. |
|
Oh, we should make a change in a changelog . |
|
Argh... sorry, I overlooked the changelog part in CONTRIBUTING.md - going to submit a PR to fix that soon. I also realized, that typeorm-class-transformer-shim.js wouldn't work with the "string instead of typeFunction" approach. I'm also trying to fix that soon. @pleerock Thank you so much for the fast merge - I have noticed that you're struggling at the moment to find enough time for TypeORM. I really appreciate it, as my team is migrating our in-house framework to TypeORM and we were stuck at this point. And also thanks for your effort to bring up such an amazing project! :) |
fix(changelog): Added missing line for PR #4195
Closes #4190
In addition to
now it's also possible to write:
Using this approach can prevent circular dependency issues when TypeORM is used within a frontend/browser application (e.g. when running through Angular CLI).