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.js39
- Easy setup28
- Support MySQL & MariaDB, PostgreSQL, MSSQL, Sqlite18
- Open source13
- Free12
- Promise Based11
- Recommend for mongoose users4
- Typescript2
- Atrocious documentation, buggy, issues closed by bots2
Sign up to add or upvote prosMake informed product decisions
Cons of Objection.js
Cons of Sequelize
- Docs are awful29
- Relations can be confusing9