You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue, is that I am unable to seed the data field with a JSON or an Array. Only strings seem to work. Every other kind of object throws:
Could not run seed Error: Could not save entity
at EntityFactory.<anonymous> (/node_modules/typeorm-seeding/dist/typeorm-seeding.js:103:27)
at Generator.throw (<anonymous>)
at rejected (/node_modules/typeorm-seeding/dist/typeorm-seeding.js:30:65)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
This is probably an error due to the data type JSON and/or JSONB (available in PostgreSQL). Maybe a bug? Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi! I created the following model:
And this is my Factory:
The issue, is that I am unable to seed the
data
field with a JSON or an Array. Only strings seem to work. Every other kind of object throws:This is probably an error due to the data type JSON and/or JSONB (available in PostgreSQL). Maybe a bug? Thanks in advance!
The text was updated successfully, but these errors were encountered: