-
Notifications
You must be signed in to change notification settings - Fork 74
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
Sub include relations with Sequelize: Query erro #203
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Apologies if the issue could not be resolved. FeathersJS ecosystem modules are community maintained so there may be a chance that there isn't anybody available to address the issue at the moment. For other ways to get help see here. |
Sorry for the late reply. You have a lot going on here - too much to try and recreate the problem for debugging. But if I had to guess, get rid of the |
Duplicate of #204 (which is closed). |
Hello,
I got an error in the generated query by sequelize. (error at the bottom of the post)
What i have ?
i have some relationships as bellow
Activities > Places > Properties
I'm looking for activities by properties
For this i created a custom route named : search where i'm passing an array of properties
Models description
Services
I created a sub folder
search
under services/activities and hooks/ to handle the search endpoint and push models to sequelize include parameterExpected behavior
Get all activities with places having properties
Actual behavior
I get this error, i dont really understand what's wrong ?
is it correct to have this syntax
places->properties`.`code` AS `places.properties.code
in the generated sql query ?Thank you in advance.
Generated query
The error
System configuration
Module versions
"feathers-sequelize": "^3.0.1",
"sequelize": "^4.36.0",
NodeJS version:
5.6.0
Operating System:
Windows 7 64bits
The text was updated successfully, but these errors were encountered: