I have for example a list of .find() queries like this:
db.tweets.find({},{"user.name":1}).explain()
I want to run the queries from a javascript file then save outputs to a text file
the important thing for me is getting the results from the .explain() in the text file too
is this possible? and how can I achieve this?
explain()method return?