title: xhttp GET request to an express.js server - nothing returned
body: <p>I am trying to do a simple xhttp GET request to an express.js server. Unfortunately I get no response data with this code. The connection is fine as I have successfully used "<code>res.send</code>" to send a body back from the server.  </p>
  
  <p>I am not sure if my use of "<code>findOne</code>" on the server is incorrect or if my use of xhttp on the client is incorrect. I suspect it is the client. </p>
  
  <p>I'd appreciate any advice. </p>
  
  <p><strong>* CLIENT CODE *</strong></p>
  
  <pre><code>function getfood() {
      var xhttp = new XMLHttpRequest();
      xhttp.open("GET", "http://localhost:3000/clientfood", true);
      xhttp.send();
  }
  </code></pre>
  
  <p><strong>* SERVER CODE - Express.js / Node *</strong></p>
  
  <pre><code>app.get('/clientfood', cors(), (req, res) =&gt; { 
    //res.send('test'); //this works at least
    db.collection('quotes').findOne({
       "_id": ObjectId("12345")
    },
    {
      name: 1,
      quote: 1
    })
  })
  </code></pre>