News for hackers. Stuff that matters.
Re:Show HN: ORM for TypeScript with no query-builder, suppor... by racedude on Thursday September 03, 2020 @09:19AM (#24363744)
What about this? https://github.com/typeorm/typeorm/blob/master/docs/active-r... (Forgive me if this isn't what you are looking for, not super familiar with ActiveRecord myself, just recalled seeing that yesterday!
Re:Show HN: ORM for TypeScript with no query-builder, suppor... by Thomaschaaf on Thursday September 03, 2020 @12:50PM (#24365977)
https://mikro-orm.io/ is a much better typeorm alternative as it is actively being maintained. TypeORMs development has come to a halt. And many issues are not being fixed.
Re:Show HN: ORM for TypeScript with no query-builder, suppor... by benatkin on Thursday September 03, 2020 @11:58AM (#24365342)
I like TypeORM but have passed on it for now because of this potential sql injection issue: https://github.com/typeorm/typeorm/issues/3740 I have passed a field to order_by() from the user in Django before. I would be more likely to use a dict now, but I shudder at the thought of accidentally creating an SQL injection bug because I expected to be protected by my ORM.
Re:Show HN: ORM for TypeScript with no query-builder, suppor... by jdauriemma on Thursday September 03, 2020 @09:39AM (#24363905)
Yes, TypeORM is definitely the JavaScript answer to ActiveRecord
Re:Show HN: ORM for TypeScript with no query-builder, suppor... by agustif on Thursday September 03, 2020 @09:48AM (#24363994)
Can vouch for TypeORM, hopefully it's creator will pick it back up soon and get it to a stable v1.0.0!!