Smart field search v8

Expected behavior

query.include parameter of a smart field search function contains some included tables (say, A and B). I am able to edit the array and add some more nested includes to table A. This is how it works in v7.

Actual behavior

query.include is an empty array in the function. I add a new include (table A and it’s nested tables). Then in the logs I see the query include tables: A, B (as in the v7 I guess) and one more A with nested tables (that was added by me). So the table A is included twice. This is in v8.

Failure Logs

Also if include is not a [{ model: A }] but a { model: A }, error parentIncludeList.forEach is thrown

Context

Please provide any relevant information about your setup.

  • Package Version: 8.3.0
  • Express Version: 4.17.1
  • Sequelize Version: 5.22.4
  • Database Dialect: mysql
  • Database Version:
  • Project Name:

Hello @Tatsyana_Slabodchyka,

Thanks for your feedback. We recently (yesterday) found the issue. We have a ticket on our internal tools. I will add this thread to be sure your updated once a fix is released. :slight_smile:

Kind regards,
Morgan

2 Likes