let md = require('mongoose-debuger');
let mongoose = require('mongoose');
md(mongoose);
// now it will print in logs all queries as a string;
npm install -g git+ssh://[email protected]:npmatichs/mongoose-debuger.git
npm install -g git+http://github.com/npmatichs/mongoose-debuger