express-crud-router
express-crud-router copied to clipboard
Make raw optional on getList
I have sequelize afterFind hooks which rely on the instance.get('propertyName') method to read a proprety value. The hooks work fine except on the getList call.
Turns out the raw: true line caused this: https://github.com/lalalilo/express-sequelize-crud/blob/master/src/sequelize/index.ts#L24
An option for example like this would be very helpfull:
app.use(
crud('/admin/users', sequelizeCrud(User), {
getListRaw: false
})
)