Reputation: 2790
How can I debug the MongoDb aggregation steps using native mongodb
driver for node.js Node.js Mongodb driver
What I have found by googling is this npm
package: https://www.npmjs.com/package/mongo-aggregation-debugger
Are there any other alternatives?
Upvotes: 11
Views: 6573
Reputation: 9594
This is an old post but Aggregation Pipeline Builder in MongoDb Compass works great for debugging. You can build your pipeline with real-time results and errors then export the result to Node.js (Java, Python or C#).
Upvotes: 11