express-crud-router icon indicating copy to clipboard operation
express-crud-router copied to clipboard

Make raw optional on getList

Open Bossieh opened this issue 4 years ago • 0 comments

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
  })
)

Bossieh avatar May 25 '21 14:05 Bossieh