title: Insert documents in Mongo without ObjectId
body: <p>The below code snippet inserts a JSON object from a POST request. The problem is it also prefixes the string <strong><em>ObjectId</em></strong> with every unique key. Please see expected and current output for more clarity.</p>
  
  <pre><code> module.exports.addMethod = function (db, req) {
  
    var body = "";
    req.on('data', function (chunk) {
      body += chunk;
    });
  
    req.on('end', function () {
        var jsonBody = JSON.parse(body);   
  
      db.collection("someCollection").insert(jsonBody, function(err,data) {
          if(err){
              console.log("cannot addd shit");
          }// error handling
            console.log("added your stuff");  
        });
    })// req.on ends here
  }// addMethod ends here
  </code></pre>
  
  <p>Expected output:</p>
  
  <p><a href="https://i.stack.imgur.com/mfnCS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mfnCS.png" alt="enter image description here"></a></p>
  
  <p>Current Output:</p>
  
  <p><a href="https://i.stack.imgur.com/mfnCS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mfnCS.png" alt="enter image description here"></a></p>
  
  <p>I want to get rid of the <strong>ObjectId</strong> that is being prefixed with every unique id. I've tried <code>stringifying</code> it but of no use.</p>
  
  <p>NOTE: I'm not using <code>expressjs</code> therefore my assumption is I can't use <code>body-parser</code>. I don't want to use expressjs.  </p>