title: find() in created function system.js mongodb
body: <p>I'm trying to use find() but in function system.js in mongo db but when i run the script the result is <a href="https://i.stack.imgur.com/ehVXr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ehVXr.png" alt="enter image description here"></a></p>
  
  <p>this is my findstored() function</p>
  
  <pre><code>db.system.js.save({
      _id:"findstored", 
      value:function(){ 
          var data = db.counters.find({}, (err, data) =&gt; {
              data.forEach((data) =&gt; {
                 print("Customer Name: "+data.first_name)
              })
              return data.first_name;
         })
      }
  })
  </code></pre>
  
  <p>I just want to display the result with function in system.js. Thank you</p>