DEV Community

Salah Hasanin
Salah Hasanin

Posted on

Answer: Sequelize Unknown column '*.createdAt' in 'field list'

I think the error is that you have timestamps enabled in sequelize, but your actual table definitions in the DB do not contain a timestamp column.

When you do user.find it will just do SELECT user.*, which only takes the columns you actually have. But when you join, each…

Top comments (0)