O
O
Oleg Voitenko2021-03-18 19:19:43
ORM
Oleg Voitenko, 2021-03-18 19:19:43

What is the correct way to write a query in sequelize 6?

Help form the correct request through sequelize 6 exec itself looks like this:

SELECT c.name FROM Categories c LEFT JOIN PostData pd ON c.id = pd.categoryId LEFT JOIN Posts p2 ON pd.postId = p2.id WHERE p2.id = 1;


The request itself in exec works out as it should, through sequalize one curse word.

Here is the dependency structure of these three tables
60537d8a2c107948234544.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question