How to create a sequelize (sql dialect) model with array and how to perform push/pop operations. Can anyone share code snippets.
1 Answer
According to Sequelize docs ARRAY type can be used only in PostgreSQL:
DataTypes.ARRAY(/* DataTypes.SOMETHING */) // Defines an array of DataTypes.SOMETHING. PostgreSQL only.
See Other data types
2 Comments
gokul nath
Thanks a lot for the response. But,I want to use array in mysql dialect
Anatoly
Sequelize does not support ARRAY type of field for MySQL as I mentioned in my answer