Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vyspiansky/aba8aeca4e1515f6da8d23e91ce224f9 to your computer and use it in GitHub Desktop.
Save vyspiansky/aba8aeca4e1515f6da8d23e91ce224f9 to your computer and use it in GitHub Desktop.
Sequelize: show generated SQL query statements

If you disabled query logging, you can still log individual queries when needed.

await User.findOne({
  logging: console.log, // log SQL statement to console
  // ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment