sharedb-hooks
The way to hook db-interactions on the server
Usage
First you should require the package and init it:
server.js
// Add 'hook' and 'onQuery' functions to the backend backend; // ...
then you can use the function to hook model events, for example:
backend; backend; backend;