Re:Hard-won lessons: Five years with Node.js
by jcrben on Wednesday April 19, 2017 @11:53PM
(#14153809)
Have you seen typeorm? https://github.com/typeorm/typeorm
[ Parent
| on HN ]
Re:Hard-won lessons: Five years with Node.js
by silviogutierrez on Thursday April 20, 2017 @12:31PM
(#14158191)
I have. It's a great improvement over other ORMs in the NodeJS space but pales in comparison to Django's ORM. At least for now.
Relationships must be done manually, including joins, traversing, and many to many.
Sometimes doing:
w = Widget.objects.get(pk=2) w.category.author.name
Is just all you need. And Django makes that trivial.