Running raw complicated queries with sequelize #14561
Unanswered
monishgithub
asked this question in
Help & Questions
Replies: 2 comments 5 replies
-
You're using the Sequelize class. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I know that, I even tried it with instance and it still gave it. Pls dont close the ticket without answering the questions. The db client is actually using sequelize instances |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a peculiar problem. I have a joined query due to the distribution of data in various table. I want to run this as raw sql query using node module for sequelize as alot existing code is associated using sequelize orm. I do not want to use orm here but just a plain raw query. The packages are "sequelize": "^4.44.4",
"sequelize-auto": "^0.4.29",
"sequelize-cli": "^4.1.1",
Any advise if the above query can be run as raw query and the data can be captured as result.
Also when I run the below code with below sequelize code, I get
the error "_sequelize.default.query is not a function". I have also created a connection with sequelize the db and it still shows the same error. "_datasource.default.getDBClient.query is not a function"
Beta Was this translation helpful? Give feedback.
All reactions