title: Meteor cannot retrieve data from MongoDB
body: <p>Pretty straightforward and without any sort of configuration -></p>
  
  <p>In the project directory I entered the command:</p>
  
  <p><code>$ meteor mongo</code> to access the mongodb</p>
  
  <p>From there (mongo shell), I switched to db meteor using the command <code>use meteor</code> then entered some basic data to test:</p>
  
  <pre><code>j = { name: "mongo" }
  k = { x: 3 }
  
  db.testData.insert(j)
  db.testData.insert(k)
  </code></pre>
  
  <p>I checked and got results by entering: <code>db.testData.find()</code> </p>
  
  <hr>
  
  <p>Here's my meteor code provided that mongodb access is only required on the client:</p>
  
  <pre><code>if (Meteor.isClient) {
      Template.hello.greeting = function () {
          return "Welcome to test.";
      };
  
      Template.hello.events({
          'click input' : function () {
              // template data, if any, is available in 'this'
              if (typeof console !== 'undefined')
                  console.log("You pressed the button");
          }
      });
  
      Documents = new Meteor.Collection('testData');
  
      var document = Documents.find();
      console.log(document);
  
      var documentCbResults = Documents.find(function(err, items) {
          console.log(err);
          console.log(items);
      });
  }
  </code></pre>
  
  <p>Upon checking on the browser and based on the logs, it says <code>undefined</code>. I was unsuccessful from retrieving data from mongodb and showing to the client console.</p>
  
  <p>What am I missing?</p>