title: returning or looking up object from html input in node express
body: <p>I have an html/handlebars form set up with a Node/Express backend. the form offers options populated from a database. I am able to get the form to return a single user selected value and save it to my mongodb, but I really need the whole object. </p>
  
  <pre><code>{{#each proxyObj}}
              &lt;p&gt;
                  &lt;label&gt;
                      &lt;input type="radio" name="proxyTitle" value="{{title}}"/&gt;
                      &lt;span&gt;{{title}}&lt;/span&gt;
                  &lt;/label&gt;
              &lt;/p&gt;
              {{/each}}
  </code></pre>
  
  <p>and this is the express:</p>
  
  <pre><code>router.post("/proxies/:id", ensureAuthenticated, (req, res) =&gt; {
    Project.findOne({
         _id: req.params.id
      }).then(project =&gt; {
      const newProxy = {
          proxyTitle: req.body.proxyTitle
          // I need the other object values to go here, or to be able to retrieve them later
     };
      // Add to proxy array on the Project object in the collection
      project.proxies.push(newProxy);
  
      project.save().then(project =&gt; {
      res.redirect(`/projects/stakeholders/${project.id}`);
      });
    });
  });
  </code></pre>
  
  <p>Is it more sensible to try to load in the entire object as a value in the input field, or to return the id of the object, and look it up in the db? I need to display some of the returned object information on the same page, and also to use it later. Which is more efficient, and what is the best way to achieve it? </p>