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 ?
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 ?
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 });