title: Is it possible to use two select statements with mongo db in node js?
body: <p>Im in a specific situation where I have to select all records in a mongo db collection but also a record with a specific Id. I understand how to get the whole lot of records but how can I query a record with a specific id as well.</p>
  <pre><code>app.get('/:id', (req, res) =&gt; {
      Term.find().sort({ &quot;term&quot;: 1 })
      .then(result =&gt; {
      res.render('about', { title: 'About page', terms: result });
      })
      .catch(err =&gt; {
          console.log(err);
      });
  
      const id = req.params.id;
      Term.findById(id)
      .then(results =&gt; {
          res.render('about', { specific: results })
      })
  });
  </code></pre>
  <p>would the above code work as I have queried the whole database with <code>Term.find</code> but also <code>Term.findbyId(id)</code></p>