title: 'asTable' syntax with the Seriate module in Node
body: <p>I have an object I'd like to have inserted into a table in my <code>MSSQL</code> DB. </p>
  
  <p>According to the <a href="https://github.com/LeanKit-Labs/seriate" rel="nofollow">Seriate docs</a> on github, this shouldn't be a problem.</p>
  
  <p>My setup looks like this:</p>
  
  <p><strong>apiRoute.js</strong></p>
  
  <pre><code>module.exports = function(express, schema) {
  
      var apiRoute = express.Router();
  
      apiRoute.post('/test-path', function(req, res) {
  
          schema.test()
          .then(function(results) {
              res.json(results);
          }, function(err) {
             res.json(err); 
          });
      });
  
      return apiRoute;
  
  }
  </code></pre>
  
  <p><strong>schema.js</strong></p>
  
  <pre><code>var sql     = require('seriate');
  var when    = require('when');
  
  
  
  var test = function() {    
      return sql.execute({
          query: "select * from @children",
          params: { 
              children: {
                  val: [
                      { id: 1, firstName: "James", middleName: "Paul"},
                      { id: 2, firstName: "John", middleName: "Winston" },
                      { id: 3, firstName: "George", middleName: "Harold" },
                      { id: 4, firstName: "Richard", middleName: "Parkin" }
                  ],
                  asTable: {
                      id: sql.INT,
                      firstName: sql.NVARCHAR(50),
                      middleName: sql.NVARCHAR(50)
                  }
              }
          }
      });
  }
  
  module.exports = {
      test: test
  }
  </code></pre>
  
  <p>When I test this with Postman, the requests just keeps going until it eventually just times out.</p>
  
  <p>If I just execute a query without the <code>asTable</code> part:</p>
  
  <pre><code> select 1
  </code></pre>
  
  <p>It works just fine. </p>
  
  <p>What am I missing?</p>