Sunday, 23 April 2017

Using knex to read from a mysql database. How do i get information out of it?

I'm using a MySQL database with Node.js as the server-side and am using Knex.js to put data into the database. I can do that successfully, but how do I actually pull data out of it? All I want to do is console.log an entire table so I know I can access the data. From there I should be able to figure out how to implement it into my React project.

Does anyone have any ideas on how to do this?



via Milos

No comments:

Post a Comment