https://i.redd.it/qvkkygps8u931.pnghttps://i.redd.it/6ph78gps8u931.pnghttps://i.redd.it/y7l7yogt8u931.pnghttps://i.redd.it/epknnvit8u931.pnghttps://i.redd.it/crx8mcbu8u931.pnghttps://i.redd.it/pjwvf3av8u931.pngHi. I do not know how to do it.Your framework and ORM use express and sequelize.On the bulletin board, when I call the list, I want to create an API that adds a property that counts the number of comments.We try to join the reply (comment) table to the post table, count the number of comments in each post, add the attribute, and return it as json at API call.However, when I call the API from the front,Unhandled rejection Error: WHERE parameter "post_id" has invalid "undefined" valueI get this error. I can not find the cause even though I can find the cause for several days.I do not know how to fix it, but I would appreciate it if you know.
Submitted July 12, 2019 at 10:05AM by passion044
No comments:
Post a Comment