galileo_seeder

Last updated:

0 purchases

galileo_seeder Image
galileo_seeder Images
Add to Cart

Description:

galileo seeder

galileo_seeder #


Straightforward data seeder for Galileo services.
This is an almost exact port of feathers-seeder,
so its documentation should almost exactly match up here.
Fortunately, I was also the one who made feathers-seeder, so if you ever need assistance,
file an issue.
Example #
var app = new Galileo()..use('/todos', new TodoService());

await app.configure(seed(
'todos',
new SeederConfiguration<Todo>(delete: false, count: 10, template: {
'text': (Faker faker) => 'Clean your room, ${faker.person.name()}!',
'completed': false
})));
copied to clipboard
NOTE: Don't await seeding at application startup; that's too slow.
Instead, run it asynchronously.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.