Objection.js is an ORM for Node.js that 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 built on an SQL query builder called knex. All databases supported by knex are supported by objection.js. SQLite3, Postgres and MySQL.
Key Features
- An easy 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.
- Easy to use transactions.
- Official TypeScript support.
- Optional JSON schema validation.
- A way to store complex documents as single rows.
Website: vincit.github.io/objection.js
Support: GitHub Code Repository
Developer: Sami Koskimäki
License: MIT License
Objection.js is written in JavaScript. Learn JavaScript with our recommended free books and free tutorials.
Related Software
| JavaScript Object-Relational Mapping Software | |
|---|---|
| Sequelize | Promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and more |
| Drizzle | Lightweight, headless object-relational mapper |
| Objection.js | ORM for Node.js that aims to stay out of your way |
| Midnight | ORM for SQLite |
| Bookshelf | ORM for Node.js, built on the Knex SQL query builder |
| Orange ORM | Runs on Node.js, Bun and Deno, supporting CommonJS and ECMAScript mods |
| Sutando | Object-relational mapper for Node.js |
| Waterline | Adapter-based ORM for Node.js |
Read our verdict in the software roundup.
| TypeScript Object-Relational Mapping Software | |
|---|---|
| Sequelize | Promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and more |
| TypeORM | ORM that can run in NodeJS, Browser, Cordova, PhoneGap, Ionic ... |
| Prisma | Next-generation Node.js and TypeScript ORM |
| Drizzle ORM | Lightweight TypeScript toolkit for type-safe SQL database access |
| Objection.js | ORM for Node.js that aims to stay out of your way |
| MikroORM | ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns |
| Lucid | Active Record database layer designed for AdonisJS applications |
| Joist | Opinionated TypeScript data layer with strong typing and relations |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.