i have a user schema as well as a posts schema. each time, a user posts something, the post id should be pushed inside an empty array in user.
how to implement this in sequelize?
i used Sequelize.ARRAY(Sequelize.UUID) as the datatype of the posts property in user schema.
but the initial value it’s showing as null instead of empty array.
that’s why i am not able to update that property by pushing new ids.