Why Sequelizejs is inserting null for foreign key field?
If you are using Sequlizejs for working with Postgres or MySQL with foreign key columns not set in the model definition like shown below: and you try to use create or bulkCreate on the model by providing the values of all fields including foreign key column like: Then it must be failing to insert proper …
Continue reading “Why Sequelizejs is inserting null for foreign key field?”