{"library":"monk-middleware-debug","title":"monk-middleware-debug","description":"A debug middleware for monk versions >=5.0.0. It logs MongoDB operations to the console using the debug module. Current stable version is 0.2.0, but note that it is part of the monk ecosystem and has been superseded by monk's built-in debugging capabilities. It requires monk >=5.0.0 and mongodb driver. Release cadence is low; no active development. Key differentiator: lightweight, specifically for monk.","language":"javascript","status":"deprecated","last_verified":"Sat Apr 25","install":{"commands":["npm install monk-middleware-debug"],"cli":null},"imports":["import debugMiddleware from 'monk-middleware-debug'","const debugMiddleware = require('monk-middleware-debug')","import debugMiddleware from 'monk-middleware-debug'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import monk from 'monk';\nimport debugMiddleware from 'monk-middleware-debug';\n\nconst db = monk('localhost/mydb');\ndb.addMiddleware(debugMiddleware());\n\nconst collection = db.get('users');\ncollection.find({}).then(console.log);","lang":"javascript","description":"Shows how to add debug middleware to a monk instance and execute a query.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}