Posts by Gabriel Ribeiro • 13 points
1 post
-
1
votes1
answer26
viewsQ: How do I use WHERE using Knexjs as a conditional?
I am doing a put route to update, and using knexJS to update the data in the database, and in my code the solution I found was this below: dbKnex("game").where({ id: id }).select("*").then(data…