4 ms·
This is probably too early to share, but I've been flushing out a Node/TS ORM that integrates dataloader from day 1: https://github.com/stephenh/joist-ts https
by stephen 6y ago
This is probably too early to share, but I've been flushing out a Node/TS ORM that integrates dataloader from day 1:
https://github.com/stephenh/joist-ts https://github.com/stephenh/joist-ts
Disclaimer, it's being used in low-volume production by us, but that is about it, so ymmv. The "docs" is the sample app used for integration tests/etc.
I mention it b/c I agree with the article that GraphQL is super-easy to N+1, but the Hasuras/Postgraphiles are a fairly different application architecture than "I'd like some ActiveRecord-style domain objects".
Prisma is also promising, but AFAIU more of "a really great query layer" than "how you'd write your domain objects", which is what I wanted to focus on.
I was originally a node/JS skeptic, but it is uncanny how well the JS "limitation"/architecture of an event-loop + async/await basically provides Haxl-style batching "for free" to the application programmer.
- sickcodebruh 6y agoGood luck with this, I really hope it works out. We've been using TypeORM with Postgres for maybe a year now and we keep finding little things that are really surprising, it's hurting our faith in it.
- latchkey 6y agoMikroORM is a nice alternative to TypeORM that is newer on the market. I tried out an experiment with TypeORM and basic relations and things didn't work the way I'd expect at all. Looked in the issue tracker and saw many open unresolved issues. Went looking around a bit more and found MikroORM. The developer is fantastic, fixes issues and overall it is a better designed tool that just works the way you'd expect. Edit: I just noticed that stephen is the op, an old friend. It is worth looking into Joist as well. =)