title: Robomongo, how to use custom functions?
body: <p>I'm trying to use the mongodb client "Robomongo" <a href="http://robomongo.org/" rel="noreferrer">http://robomongo.org/</a></p>
  
  <p>It works fine, but I can't understand how to access to the functions created on the "functions" section...</p>
  
  <p>I want to test the mapReduce functionality, so I've created a map() and reduce() function, but when I write on my shell:</p>
  
  <pre><code>db.&lt;name_of_collection&gt;.mapReduce(map, reduce, {out: {inline: 1}});
  </code></pre>
  
  <p>Robomongo give to me the following error:</p>
  
  <pre><code>ReferenceError: map is not defined (shell):1
  </code></pre>
  
  <hr>
  
  <p>I've also tried like this:</p>
  
  <pre><code>db.&lt;collection_name&gt;.mapReduce(db.system.js.map, db.system.js.reduce, {out: {inline: 1}});
  </code></pre>
  
  <p>But again, something seems to be wrong...</p>
  
  <pre><code>uncaught exception: map reduce failed:{
      "errmsg" : "exception: JavaScript execution failed: ReferenceError: learn is not defined",
      "code" : 16722,
      "ok" : 0
  }
  </code></pre>