city41/node-sql-fixtures

the in memory result returned from create() does not include auto genned columns

city41 opened this issue · 1 comments

The result object given back after create() is finished is based off of the fixture spec that was passed in. So only that data is present.

In other words, if you have a column that is automatically populated (say a createdAt which gets populated with the current timestamp), that column's data is not returned in create()'s callback.

To fix: after generating the fixtures, query for them in the db and use that data to populate the results. Not sure if this is really needed though, but documenting here in case anyone runs into this.

This is fixed as 0.1.8