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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -