Unhandled rejection SequelizeDatabaseError: Unknown column ‘productID’ in ‘field list’
at Query.formatError (F:\Website\node_modules\sequelize\lib\dialects\mysql\query.js:244:16)
at Prepare.onResult (F:\Website\node_modules\mysql2\lib\connection.js:604:11)
at Prepare.execute (F:\Website\node_modules\mysql2\lib\commands\command.js:30:14)
at Connection.handlePacket (F:\Website\node_modules\mysql2\lib\connection.js:417:32)
at PacketParser.onPacket (F:\Website\node_modules\mysql2\lib\connection.js:75:12)
at PacketParser.executeStart (F:\Website\node_modules\mysql2\lib\packet_parser.js:75:16)
at Socket. (F:\Website\node_modules\mysql2\lib\connection.js:82:25)
at Socket.emit (events.js:210:5)
at addChunk (_stream_readable.js:309:12)
Error while adding data to datanase using sequelize
Upload the entire code on github and send the link.
Here you have id as column name instead of productID, thus the column productID is unknown.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.