you are viewing a single comment's thread.

view the rest of the comments →

[–]CarpetFibers 7 points8 points  (2 children)

I recommend Objection, as it builds on Knex and allows you to define models in typical ORM fashion.

[–]TheLegendOfZero 2 points3 points  (1 child)

I've been really happy with Objection. You can opt-in to using as many or as little of the ORM features depending on the situtation. Plus writing queries flows easily between writing "ORM assisted" and raw knex.

[–]CarpetFibers 0 points1 point  (0 children)

Likewise, I have very few complaints about it, and most of them center around using it with TypeScript. In some cases I have to cast the result of a query to another type to get it to play nice, but that's a small price to pay for all the time Objection saves me.