Loopback-next: lb4 seed data example

Created on 23 Feb 2019  路  3Comments  路  Source: strongloop/loopback-next

I want to fill one model with a set of entries. Can somebody point me good example/reference that uses lb4?

Thanks

question

Most helpful comment

For those who wandering here, I got the answer. I read the documentation again ;) Here is it. https://loopback.io/doc/en/lb4/Database-migrations.html#implement-additional-migration-steps

All 3 comments

Is this todo example what you're looking for? https://loopback.io/doc/en/lb4/todo-tutorial.html.
I'm transferring your issue to the loopback-next repo.

Thanks @dhmlau for responding.
My bad, I should have made it clear. No, I want to fill one database table with bunch of seed data while deploying or after immediate deployment just like migration. An example would be: I've a todo list model and I want to fill those tables with bunch of entries during the deployment or after the deployment so that user who access the application will have something to see. Just like rails seed data. Please let me know anyway to do this in loopback4.

Thanks

For those who wandering here, I got the answer. I read the documentation again ;) Here is it. https://loopback.io/doc/en/lb4/Database-migrations.html#implement-additional-migration-steps

Was this page helpful?
0 / 5 - 0 ratings

Related issues

teambitcodeGIT picture teambitcodeGIT  路  3Comments

mhdawson picture mhdawson  路  3Comments

aceraizel picture aceraizel  路  3Comments

frodoe7 picture frodoe7  路  3Comments

joeytwiddle picture joeytwiddle  路  3Comments