Explore underrated JavaScript APIs like `structuredClone` and `AbortController` that let you build dynamic, performant, and user-friendly apps.
Learn how to manage environment variables in Next.js, which influence how an application behaves in different contexts and environments.
useActionState
in React: A practical guide with examplesDiscover how React’s useActionState Hook makes it easier to handle user actions, especially form submissions and async state changes.
Compare two libraries that support creating 3D experiences in the browser. Learn how to get started with each, their core features, and key differences.
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.