Needs to be improved
Need to have graphiz installed on the machine. Refer to
- https://graphviz.readthedocs.io/en/stable/manual.html#installation
- https://www.graphviz.org/download/
Use JSON.stringify(). Example
JSON.stringify(db.people.find({name:{$gt: "A"}}).sort({name:1}).explain("executionStats"))
pip install graphviz
python3 explain-viz.py <filname>