Open Martinsos opened 1 year ago
Can I work on this issue?
@Atharva1723 this is not quite clear yet, as to what is the best move and how to do it, so I would recommend this for initial issue.
@Martinsos Maybe we can go with server scripts as It doesn't limit their benefit to a single operation rather, it covers their use for a variety of server-related procedures, such as database seeding and data migrations.
@Atharva1723 yup I think that makes sense: server scripts
!
While they can be used for database seeding, they can also do quite more! They are really scripts, like in package.json scripts, that can be run on demand in the context of the server. Primarily they should be used during development, but you could also run them in production. For example, they could be a good way to run data migrations.
They are running in NodeJS, have access to Operations, have access to the database, and can import any server file that user defined. So just
db seed
is too limiting of a name. Maybe we could go withserver scripts
. Ordb scripts
. Or justscripts
. I am not sure yet, but something in this direction.