node.js - Sequelize returns _previousDataValues, _options, options, and all kinds of other junk -
if run simple query following, object junk ( _previousdatavalues, _options, options, etc). how disable meta data , return actual datavalues? can't find in spotty documentation.
models.product.findall({ attributes: ["id", "name"] })
all 'junk' used sequelize fancy stuff orms do: keep change of changed values etc. etc...
they removed automagically when serialize instances json, or might manually using .get({ plain: true })
or .tojson()
Comments
Post a Comment