-2

How to create a sequelize (sql dialect) model with array and how to perform push/pop operations. Can anyone share code snippets.

1

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks a lot for the response. But,I want to use array in mysql dialect
Sequelize does not support ARRAY type of field for MySQL as I mentioned in my answer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.