I'm learning Node.js and Sails is my framework of choice. I want to use it in a project with MySql db and I think that Sequelize Orm is more complete. How can I use Sequelize Orm in Sails instead of Waterline?
Thanks
Sails is the most popular MVC framework for Node. js, designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture.
Who uses Sequelize? 88 companies reportedly use Sequelize in their tech stacks, including kevin., Barogo, and repl.it.
js (or Sails) is a model–view–controller (MVC) web application framework developed atop the Node. js environment, released as free and open-source software under the MIT License. It is designed to make it easy to build custom, enterprise-grade Node. js web applications and APIs.
I think you can as sails was born with sequelize.
You can read Mike McNeil's answer here and maybe ask Mike directly if he will reintroduce sequelize support
There are two project that come out recently that i've have worked to reintroduce full support to sequelize, including blueprints.
sails-hook-sequelize
sails-hook-sequelize-blueprints
See my answer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With