Best practice for where to put 2.8k lines of JSON/JS input for knex migration

24 views Asked by At

I'm writing a knex/objection migration file that adds some non-user generated data to my database. For that, I have to input 2.8k lines of an array of objects: enter image description here It just feels wrong to plop it straight into the migration file, so is there a best/common practice for where I can put this in a JSON file instead and import from there?

0

There are 0 answers