Answer the question
In order to leave comments, you need to log in
Why doesn't nestTables work in nodejs mysqljs/mysql?
Hello. I use https://github.com/mysqljs/mysql.
Why is there only 1 element in games_img?
{ games: { id: 1 }, games_img: {... } }
{sql: 'SELECT games.id, games_img.game_id, games_img.url FROM games LEFT JOIN games_img ON games.id = games_img.game_id GROUP BY games_img.game_id', nestTables: true}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question