How to execute external file using mongo shell and see the result in console?
I have external file, like query.js and I would like to execute it and see the result in cmd.
query.js
Let's say, content of the file is:
db.users.find()