Comments (4)
Perhaps I can add a hooking option to the seed
function, like:
const seederConfig = {
services: [...],
hooks: {
after: {
delete() {
return new Promise((resolve, reject) => {
resetAutoIncrement((err) => {
// ...
});
});
}
}
}
};
I want to keep the seeder provider-agnostic, so this would probably be the best method to maintain that.
from feathers-seeder.
One remark: For now i'm just setting the id field manually myself to make sure it has a certain id. So this issue is not on high priority.
from feathers-seeder.
I agree with @thosakwe here. feathers-seeder
just deals with services and not those types of concerns.
Can you have sequelize drop/create the db before seeding?
from feathers-seeder.
Sure feathers shouldn't be aware of any implementation details of the service adapters. But the hook would be great!
from feathers-seeder.
Related Issues (19)
- Seeder works on "services" and not "models" HOT 2
- 1.0.8 not working anymore HOT 1
- support faker locale option HOT 3
- How to handle several dependent seeds HOT 3
- Seeder not working with nuxt-js project HOT 4
- MIT License HOT 11
- enabling https HOT 3
- GeneralError: Cannot read property 'remove' of undefined HOT 1
- Getting dates in ISO format
- ResourceRequest timed out HOT 3
- Low Severe Vulnerabilities Found
- error: MethodNotAllowed: Can not remove multiple entries HOT 1
- Error on postinstall (Unknown plugin "add-module-exports") HOT 2
- question: creating users from predefined data HOT 1
- bug: number types in templates are empty HOT 1
- Import data 1:1 without randomization HOT 4
- Provide placeholder for Iterator number HOT 9
- executing order of service array HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feathers-seeder.