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.
Objection.js is a tool in the Object Relational Mapper (ORM) category of a tech stack.
Objection.js is an open source tool with 6.5K GitHub stars and 576 GitHub forks. Here’s a link to Objection.js's open source repository on GitHub
Who uses Objection.js?
12 companies reportedly use Objection.js in their tech stacks, including Flux Work, iOS, and Habx.
20 developers on StackShare have stated that they use Objection.js.
- A declarative way of defining models and relationships between them
- Simple and fun way to fetch, insert, update and delete objects using the full power of SQL
- Powerful mechanisms for eager loading, inserting and upserting object graphs
- A way to store complex documents as single rowsCompletely Promise based API
- Easy to use transactions
- Optional JSON schema validation
Objection.js Alternatives & Comparisons
What are some alternatives to Objection.js?
See all alternatives
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.
Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
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.