0

I need to log RAW query generated by Sequelize and it's result to get the ID. RAW query of sequelize with insert ID as default, but I want to know that ID.

Loggin: function(str) solve logging raw query but not help me see it's id.

sockyone
  • 3
  • 3
  • Possible duplicate of [How can I see the SQL generated by Sequelize.js?](https://stackoverflow.com/questions/21427501/how-can-i-see-the-sql-generated-by-sequelize-js) – Rastalamm Jul 19 '19 at 13:58
  • @Rastalamm yep. Logging: function(str) anyway help me log raw query, but not result of query – sockyone Jul 19 '19 at 17:23
  • You want to log out the results of an insert? Can you paste some code on how you are calling your insert? – Rastalamm Jul 19 '19 at 17:40
  • @Rastalamm yea but there is a big project and I can't add code in thousand route. But I solved the problem by configure Sequelize's code. Thanks for ur support – sockyone Jul 20 '19 at 11:16

0 Answers0