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 7.3K GitHub stars and 640 GitHub forks. Here’s a link to Objection.js's open source repository on GitHub
Who uses Objection.js?
Companies
13 companies reportedly use Objection.js in their tech stacks, including Flux Work, iOS, and Habx.
Developers
26 developers on StackShare have stated that they use Objection.js.
Objection.js Integrations
Objection.js's Features
- 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?
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.
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.
MySQL
The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.
PostgreSQL
PostgreSQL is an advanced object-relational database management system
that supports an extended subset of the SQL standard, including
transactions, foreign keys, subqueries, triggers, user-defined types
and functions.
MongoDB
MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.