Sequelize scopes allow users to define reusable queries on the model. You can define a defaultScope, as well as named scopes. I got these working for find, update, and findAll, but not for create.
From the docs:
Scopes are applied by calling
.scopeon the model definition, passing the name of one or more scopes..scopereturns a fully functional model instance with all the regular methods:.findAll,.update,.count,.destroyetc.
Is it possible to apply a scope to the create method, so the returned instance is limited to certain attributes?