$ open source · GPL-3.0 — need a commercial license? imqueue.com →

query.pureData variable

Keeps only the properties a model actually declares.

Signature:

pureData: PureDataFunction

Remarks

The filter for input arriving from outside: anything the model does not declare as an attribute is dropped rather than passed to Sequelize, so a caller cannot set a column by sending an unexpected property. Arrays are mapped element by element, and relations are dropped along with everything else — this looks at rawAttributes only.