0

I want to see all queries of specific table.

Not for all queries like:

Enable logging for all queries

Or one specific query like:

Enable logging for update query

Anyone know how to do this ?

ttrasn
  • 4,322
  • 4
  • 26
  • 43
mr repo
  • 35
  • 11

1 Answers1

2

You can enable logging for specific table by sync options.

TableModel.sync({ logging: console.log });

And if you want disable it just set it to false.

TableModel.sync({ logging: false });
ttrasn
  • 4,322
  • 4
  • 26
  • 43