Query counter for mongoosejs
- Query type counter: You are able to measure, the queries on your collection by type.
npm install mongoose-query-counter
var mongoose =var Schema = mongooseSchemavar audit =var blogSchema =name: Stringtitle: Stringvar connection = mongooseauditblogSchemavar = connectionvar article = title: 'test Title1' name: 'testname'
Every schema has a collection with the prefix Audit_. This collection collects the call numbers for every query type.