title: fs.appendFile returning [object Object]
body: <p>console.log is returning req.query (request.query) correctly, as { name: 'sean', comments: 'Hey' }. But when I try to write it to a file using fs.appendFile, it is writing it as [object Object]. Here's the server code: </p>
  
  <pre><code>  app.get('/', function (req, res) {
  var rq = req.query  //Write req.query to a variable
  console.log("received: ", rq)   //This returns correctly
  fs.appendFile('comments.txt', rq, function (req, err) {  //This is where object Object is written
  if (err) throw err;
  console.log("written: ", rq)  //This returns correctly
  });
    res.header('Content-type', 'text/html');
    return res.end('&lt;h1&gt;Hello, World!&lt;/h1&gt;');
  });
  </code></pre>
  
  <p>Any thoughts? Thanks.</p>