- pass all comments to ThreadList - filter comments based on threadLevel === parentId - pass comment id to toggleCollapse()
MWE of Sequelize Association for comments
To run:
- git clone
npm i
createdb mwe-comments
npm run seed
-npm start
- open http://localhost:1337/api/comments in browser