Comments (5)
Thanks for this info. I am looking in an alternative direction.
from cli.
generate fakes
has been introduced (beta) in f+/cli v0.5.1 using generator v0.3.1. https://generator.feathers-plus.com/get-started/#generate-fakes
from cli.
Seeding a realistic set of tables would require seeding foreign keys. This is the main impediment to including a seeder.
I am not aware of a seeder repo which has that capability. Do you have an alternative or thoughts on this?
from cli.
@eddyystop Its possible to use callback in seeder options. There are called after record was created. This is way how to deal with foreign keys. Check the callback example in configuration docs:
https://github.com/thosakwe/feathers-seeder#configuration
from cli.
Actually use of callbacks is little bit tricky and there is also problem of unpredictable execution order of more seeders.
executing order of service array #9
from cli.
Related Issues (20)
- Cannot start application HOT 1
- Use https on new Feathers (Buzzard) with typescript HOT 6
- Best practices of using generate with prettier HOT 3
- Cannot get simple GraphQL call to complete after following tutorial HOT 8
- Sequelize.ts error HOT 2
- SQL Syntax error with Sequelize, TS and MySQL 8 ?
- regenerating service removes all hooks on service HOT 5
- app#src with multiple path directory fail to start HOT 2
- Feathers Seed MongoDB Race Condition HOT 5
- Feature Request: Add code insertion point HOT 2
- Update Changelog HOT 1
- generate HOT 1
- [Question] "mongo" & "sequelize" files for "mongoose"? HOT 4
- Service fields in mongo/mongoose/sequelize are all string/TEXT, even for numbers HOT 1
- Generated TypeScript version fails to compile - app.configure() type mismatch HOT 8
- Generated TypeScript with custom sources folder fails to "npm start" (again)
- Feature request: Add config option or code insertion point
- Unable to use npx to do a one off command with feather-plus/cli
- getDescription is not a function after generating graphql service HOT 1
- is this cli deprecated? HOT 3
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 cli.