-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include property (for associations) seems to be not supported #68
Comments
Any work on this? |
any update on this? |
@Shagequi were you able find any alternative to this? |
Hi,
Mock-Sequelize doesn't seem to support the "include" property from Sequelize.
Here is an example of use :
Above, I created two fake tables and now I want to get the event relative to a sector based on his id.
So I have three choices :
1- Get the event with the function
sector.getEvent()
after getting my sector through a query.2- Get the event through a query (like :
event.findOne(... where: {id : sector.event_id}...)
)3- Get the event through the property
include
like this :But the last one doesn't work with SequelizeMock and I don't know why...
Why does the
include
property works well when I use Sequelize but not SequelizeMock ?Do you have any functional examples of use ? for 1, N and N, M queries ?
Or this feature is not (yet) supported by SequelizeMock ?
Thank you.
The text was updated successfully, but these errors were encountered: