sequelize “findbyid” is not a function but apparently “findAll” is

With Sequelize v5, findById() was replaced by findByPk(). Replace findById using findByPk and everything should work fine. You can find query doc here

Leave a Comment