Need advice about which tool to choose?Ask the StackShare community!

Objection.js

35
53
+ 1
0
Sequelize

696
1.2K
+ 1
123
Add tool

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.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Objection.js
Pros of Sequelize
    Be the first to leave a pro
    • 35
      Good ORM for node.js
    • 26
      Easy setup
    • 16
      Support MySQL & MariaDB, PostgreSQL, MSSQL, Sqlite
    • 13
      Open source
    • 12
      Free
    • 10
      Promise Based
    • 3
      Recommend for mongoose users
    • 3
      Atrocious documentation, buggy, issues closed by bots
    • 2
      Typescript
    • 2
      Newest Sequelize on 2022 was better at documentation

    Sign up to add or upvote prosMake informed product decisions

    Cons of Objection.js
    Cons of Sequelize
      Be the first to leave a con
      • 28
        Docs are awful
      • 7
        Relations can be confusing

      Sign up to add or upvote consMake informed product decisions

      What is Objection.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?

      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.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use Objection.js?
      What companies use Sequelize?
      See which teams inside your own company are using Objection.js or Sequelize.
      Sign up for Private StackShareLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Objection.js?
      What tools integrate with Sequelize?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      What are some alternatives to Objection.js and Sequelize?
      TypeORM
      It supports both Active Record and Data Mapper patterns, unlike all other JavaScript ORMs currently in existence, which means you can write high quality, loosely coupled, scalable, maintainable applications the most productive way.
      Hibernate
      Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.
      Entity Framework
      It is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects. It eliminates the need for most of the data-access code that developers usually need to write.
      SQLAlchemy
      SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
      Doctrine 2
      Doctrine 2 sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL.
      See all alternatives