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.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.