You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a resource with Finale, there should be an option to set paranoid to true or false. Sequelize has built in support for soft-deletes with this option, but finale-rest doesn't give you any way to pass it through.
The text was updated successfully, but these errors were encountered:
That is not entirely correct. Please see the documentation here.
Setting paranoid on the model simply adds the deletedAt field and makes deletes not happen. However, there is another paranoid option that you pass to queries such as the one your library uses (findAndCountAll) that instructs the query whether or not to return deleted items.
I actually updated your library to support this feature. It's simply a matter of passing a pranoid option to your Resource constructor (while setting a default of paranoid:true in your lodash defaults method) and passint that option value through in your base.js and list.js files.
When creating a resource with Finale, there should be an option to set paranoid to true or false. Sequelize has built in support for soft-deletes with this option, but finale-rest doesn't give you any way to pass it through.
The text was updated successfully, but these errors were encountered: