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
Error: Include unexpected. Element has to be either a Model, an Association or an object. #11685
Comments
I made a typo : |
Hi so it's caused by your typo? I also have this issue, but don't know why :( |
@JasmineGe did you figure it out? |
same issue |
Same issue |
same issue |
Same Issue |
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
21 similar comments
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
25 similar comments
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I had the issue but it was because i did not use the proper name for the model name use that i defined it as in my model i defined it as sequelize.define('houseLocation' and in query i had lower "l"
Once i used the correct case as I had in the in model then it work. Check the name you gave it in the define bit in the model and check your case
|
I just had the same issue and double checked the name of my models. They were wrong. This solved my issue. |
@jy95 thanks, you saved my time with simple 'as' property include: [{model: Products, as: 'products', attributes: ['name_product']}], |
i also make same typo anyway thanks |
I also make same typo, thank you :) |
Issue Description
I am trying to make a big query with many joins and it seems sequelize doesn't like the way I am doing this.
What are you doing?
What do you expect to happen?
I expect that to work when I use findAll
What is actually happening?
Additional context
Here are my models definitions if It could help you :
Exercise
Exercise_Metrics
Exercise_Tag
Tag
Tag_Category
Environment
Issue Template Checklist
How does this problem relate to dialects?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: