the-road-to-graphql / fullstack-apollo-express-postgresql-boilerplate

💥 A sophisticated GraphQL with Apollo, Express and PostgreSQL boilerplate project.
https://roadtoreact.com
MIT License
1.2k stars 265 forks source link

Sequelize findById is not a function #123

Open mejustdev opened 3 years ago

mejustdev commented 3 years ago

findByIddid not work in my case.

I find the solution in Stackoverflow Changed it to findByPk

gregegan commented 3 years ago

Correct - findById is deprecated in sequelize. Use findByPk