
Learn how Vitest 4 makes migrating from Jest painless, with codemods, faster tests, native ESM, browser testing, and a better DX.

Learn when to use TypeScript types vs. interfaces, with practical guidance on React props, advanced mapped and template literal types, performance tradeoffs, and common pitfalls.

A hands-on comparison of five AI coding CLIs, tested by building the same React Todo app.

Discover what’s new in The Replay, LogRocket’s newsletter for dev and engineering leaders, in the December 17th issue.
Would you be interested in joining LogRocket's developer community?
Join LogRocket’s Content Advisory Board. You’ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag.
Sign up now
2 Replies to "Querying databases with Knex.js"
Unfortunately this tutorial is full of holes. The code on Github doesn’t work, nor does it match the code used in the tutorial. I would recommend taking this post down until the errors can be fixed and a working version of the final project can be cloned and run successfully.
Hi Christian, thanks for pointing this out. I’ll update the article shortly, I have fixed the codebase with the endpoints you’re expecting. CRUD should work fine now – https://github.com/AvanthikaMeenakshi/knex-tutorial/issues/1.
Thanks,
Avanthika.