News for hackers. Stuff that matters.
Re:Prisma – ORM for Node.js and TypeScript by eydwales on Wednesday April 21, 2021 @07:07AM (#26887946)
I suggest to not add a layer. Stay close of the SQL request, you can simply have a function that will fulfill an access pattern. No need for ORM.
Re:Prisma – ORM for Node.js and TypeScript by ponyous on Wednesday April 21, 2021 @07:11AM (#26887983)
Yeah, I have no problem with minimum ORM (prepared statements type of thing) - That's why I am asking the question, Prisma seems a bit too much. Usually I just use simple ORM helpers (get by primary key for example) and anything complex is raw sql.

What I am looking for is ideally something that helps with type saftey and seeds/migrations/schema creation.

Re:Prisma – ORM for Node.js and TypeScript by tekkk on Wednesday April 21, 2021 @08:59AM (#26889059)
I have been using Flyway with Node.js. Works all right and you write everything (migrations, schema, seeds) in SQL. It does make working with SQL quite straightforward and non-magical.

The thing is of course that with very complex queries you'll end up making quite intricate string building stuff which may not be very pretty. I myself am curious to find out if Prisma can make that part go away.

Re:Prisma – ORM for Node.js and TypeScript by heisenbit on Wednesday April 21, 2021 @07:30AM (#26888164)
I'm wondering at the moment whether Knex (solid query builder and migration) and Objection.js would not do this trick. That combo seems to give me json validation which is nice and seemingly both a way to handle entities and graphs in an efficient way.
Re:Prisma – ORM for Node.js and TypeScript by gmac on Wednesday April 21, 2021 @08:03AM (#26888469)
https://jawj.github.io/zapatos/ (no built-in migration support, though)
Re:Prisma – ORM for Node.js and TypeScript by domlebo70 on Wednesday April 21, 2021 @07:28AM (#26888154)
Re:Prisma – ORM for Node.js and TypeScript by topicseed on Wednesday April 21, 2021 @07:14AM (#26888003)
Try Knex!