11

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?

4
  • I debug by writing my query in robomongo. Commented Oct 13, 2017 at 10:23
  • Just curious, why are you looking for an alternative? Commented May 26, 2018 at 14:47
  • @AndrewNessin I was looking for a possibility to halt the aggregation at a specific point and get the intermediate result until this aggregation step. Robo3T is what I'm using now - when building my query I just remove the aggregation steps after the step and look at the temporary result. Commented May 29, 2018 at 11:16
  • try this github.com/entria/debug-mongoose-aggregate Commented Jun 26, 2019 at 13:32

1 Answer 1

11

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#).

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.