title: how to retrieve users full data from mongodb using node js
body: <p>i got one user resistor detail in my profile page but how to get all users registor details in my html profile page?  </p>
  
  <p>This is my one user register detail  get code from mongodb database</p>
  
  <p>app.get('/profile', function(req, res) {</p>
  
  <pre><code>  User.findOne(function(err,user){
      if (err)
              return done(err);
  
          // check to see if theres already a user with that email
          if (user) {
            console.log("THIS : " + user.country);
            res.render('profile.ejs', {
            user: user
          });
    }
  
  });
  </code></pre>
  
  <p>});</p>