Hey @LotusBlack
This was working on v6, right?
Could you try using and tell me if it’s working for your case ?
query.include = [{
model: models.materials,
as: 'idMaterial'
}, {
model: models.origins,
as: 'idOrigin'
}];
- How am I suppose to fix this failure ? I saw that it is linked to the declaration of Sequelize (cf this topic ) but I don’t know how to change it since the declaration is now in
index.js
.
I’m not sure of what you mean here. models/index.js
should export all the models you need, just like it did in v6. I would be happy to take a look at yours to check if everything is setup correctly.
- The documentation needs to be updated at the import level for the Op operator and maybe something else since I have the same structure and this is not working
const Op = models.objectMapping.Op;
should work as expected, but maybe you’ve encounter an issue between the time we updated the documentation and this thread, as this should have been fixed following your previous thread.
I can see that a fews changes were made on our end on this (The search function), so I’ll be happy to help if my proposed solution did not work on your case
Hope that helps