Matthias Herrmann
Matthias Herrmann

Reputation: 2790

Mongodb - How to debug aggregation steps?

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

Answers (1)

jwerre
jwerre

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

Related Questions