title: Mongo shell execute query from file and show result
body: <p>How to execute external file using mongo shell and see the result in console?</p>
  
  <p>I have external file, like <code>query.js</code> and I would like to execute it and see the result in cmd.</p>
  
  <p>Let's say, content of the file is: </p>
  
  <pre><code>db.users.find()
  </code></pre>