title: Node.js Query Parameters for Smartsheet API
body: <p>I am trying to send <code>include</code> parameters with a get-sheet request <a href="https://smartsheet-platform.github.io/api-docs/#get-sheet" rel="nofollow noreferrer">smartsheet.sheets.getSheet(options)</a> using the Node.js sdk. The API documentation is vague on how to add the <code>include</code> parameters in the API call. </p>
  
  <p>I found a Smartsheet Developers Blog post <a href="https://developers.smartsheet.com/blog/demystifying-query-parameters-in-the-smartsheet-api" rel="nofollow noreferrer">Demystifying Query Parameters in the Smartsheet API</a> that provides more guidance, but the Node.js example code they provide is invalid javascript:</p>
  
  <pre><code>// Set options
  var options = {
      queryParameters: {
      include: "attachments",
      include: "source",
      includeAll: true
      }
  };
  
  // List sheets
  smartsheet.sheets.listSheets(options)
      .then(function(response) {
  
      ... 
  </code></pre>
  
  <p>In the above code the last <code>include</code> query parameter will override all of the prior values and you will be left with a <code>options</code> variable that looses the "attachements" parameter:</p>
  
  <pre><code>  queryParameters: {
      include: "source",
      includeAll: true
    }
  </code></pre>
  
  <p>To me the obvious solutions would be for <code>include</code> to take an array like: </p>
  
  <pre><code>    include: ["attachments", "source"],
  </code></pre>
  
  <p>Any suggestions?</p>