[sequelize] Questions related to table counting with foreign key.

1,050 views
Skip to first unread message

S R

unread,
Jul 11, 2019, 8:46:15 PM7/11/19
to nodejs


node2.png

node3.png



Hi. I do not know how to do it.

For reference, express and sequelize are used.

If you add the COUNT attribute by connecting the reply table, the value will not be returned in json, and the following error will be displayed.

Also, if you add a property of file table or reply table, result.count is not returned.

I can not find the cause.

The COUNT of the reply table and file table should be listed, and result.count must also be returned.

How do I fix it?

Thank you for letting us know.

Reply all
Reply to author
Forward
0 new messages