Need advice about which tool to choose?Ask the StackShare community!
Objection.js vs Sequelize: What are the differences?
What is Objection.js? It is an ORM for Node.js. It aims to stay out of your way and make it as easy as possible to use the full power of SQL and the underlying database engine while still making the common stuff easy and enjoyable.
What is Sequelize? Easy-to-use multi sql dialect ORM for Node.js & io.js. Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.
Objection.js and Sequelize belong to "Object Relational Mapper (ORM)" category of the tech stack.
Objection.js and Sequelize are both open source tools. It seems that Sequelize with 19.5K GitHub stars and 3.04K forks on GitHub has more adoption than Objection.js with 4.26K GitHub stars and 344 GitHub forks.
According to the StackShare community, Sequelize has a broader approval, being mentioned in 52 company stacks & 178 developers stacks; compared to Objection.js, which is listed in 5 company stacks and 4 developer stacks.
Pros of Objection.js
Pros of Sequelize
- Good ORM for node.js35
- Easy setup26
- Support MySQL & MariaDB, PostgreSQL, MSSQL, Sqlite16
- Open source13
- Free12
- Promise Based10
- Recommend for mongoose users3
- Atrocious documentation, buggy, issues closed by bots3
- Typescript2
- Newest Sequelize on 2022 was better at documentation2
Sign up to add or upvote prosMake informed product decisions
Cons of Objection.js
Cons of Sequelize
- Docs are awful28
- Relations can be confusing7