title: mongoose limit render issues
body: <p>I am trying to implement infinite scroll in EJS and am trying to first render database items but limit it only to 1. So I made a test page in ejs, and was able to render the first item in the database in plaintext. </p>
  
  <p><strong>express/mongoose serverside:</strong></p>
  
  <pre><code>app.get("/test",(req,res)=&gt;{
    database.find({}, (err, found) =&gt; {
      if (!err){
        res.render("test",{
          db           :found,
          logStatus    :true,
        });
      } else {
        console.log(err);
      }
    }).limit(1);
  });
  </code></pre>
  
  <p><strong>EJS:</strong></p>
  
  <pre><code>&lt;boilerplate code for header and navbar&gt;
  
  &lt;p&gt;&lt;%=db%&gt;&lt;/p&gt;
  
  &lt;boilerplate code for footer&gt;
  </code></pre>
  
  <p>this part worked so I tried next to load the database contents individually:</p>
  
  <p><strong>express/mongoose serverside:</strong></p>
  
  <pre><code>app.get("/test",(req,res)=&gt;{  
    database.find({}, (err, found) =&gt; {
      if (!err){
        res.render("test",{
          db           :found,
          link         :found.link,
          name         :found.name,
          price        :found.price,
          logStatus    :true,
        });
      } else {
        console.log(err);
      }
    }).limit(1);
  });
  </code></pre>
  
  <p><strong>EJS side</strong></p>
  
  <pre><code>&lt;boilerplate code for header and navbar&gt;
  
  &lt;p&gt;&lt;%=link%&gt;&lt;/p&gt;
  
  &lt;boilerplate code for footer&gt;
  </code></pre>
  
  <p>this doesn't render anything so I am at a complete loss as to why.</p>