-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A possible mongoose cli to try? #8142
Comments
Nice, thanks! I'll take a look |
Great! Looking forward to your feedback. |
Nice. I like how your models are structured as functions: https://github.com/waptik/mongoose-cli/blob/master/examples/models/Test.js . For your docs, I'd also add an example with npx like how sequelize cli does. Also, another suggestion: it's a bit hard to understand how to configure umzug to use mongodbstorage with this cli, and IMO the ability to avoid re-running migrations is a key feature. |
Thanks. I just tested with npx and it's working. So i'll update the docs this Thursday using npx in the instructions. |
Maybe my understanding of how people do migrations is limited, but in my experience avoiding re-running migrations is important, and ensuring that people delete migrations is brittle |
Hey! I don't know if i should put this here or not but i am giving it a shot.
A few months ago i was looking for possible mongoose cli packages to help generate my models and seeders for me but couldn't find a suitable one that meets my needs. So i went ahead and built mine which is heavily based on sequelize-cli.
It helps generate models, seeders and migrations(if you need them) files for you from any cli by giving it a name and attributes. Here are:
Please give it a try and give me a feedback.
Thanks 👍
The text was updated successfully, but these errors were encountered: