prisma1 VS Objection.js

Compare prisma1 vs Objection.js and see what are their differences.

prisma1

💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated] (by prisma)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
prisma1 Objection.js
64 23
16,816 7,195
- 0.2%
5.1 8.7
over 1 year ago 6 days ago
Scala JavaScript
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

prisma1

Posts with mentions or reviews of prisma1. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-17.
  • Hyperstack - a new open source Node.js web framework with everything included
    6 projects | /r/node | 17 Nov 2022
    For more: https://github.com/prisma/prisma1/issues/3830
  • Show HN: WunderBase – Serverless OSS Database on Top of SQLite, Firecracker
    6 projects | news.ycombinator.com | 15 Sep 2022
    Hey there, I'm Nikolas from the Prisma team. Just came here to quickly clarify this notion:

    > Prisma is an API server that puts a GraphQL API in front of a DB.

    Prisma is an ORM which generates a JavaScript/TypeScript client library for your database.

    Your description is very true for Prisma 1 (which has been in maintenance mode for several years and is officially deprecated by now [1]), but the latest version(s) of Prisma (v2+) don't expose a GraphQL API any more. Prisma 1 also used GraphQL SDL for data modeling, the Prisma ORM on the other hand has its own, custom modeling language for describing database schemas in a declarative way and also comes with a flexible migration system.

    That being said (and as Jens also mentioned elsewhere), the Prisma ORM does use GraphQL _internally_ as a wire protocol. However, as a developer, you _never_ touch this internal GraphQL layer and are not even supposed to be aware of it (you actually have to jump through a lot of hoops to even "find" it). It's also very likely that we'll replace GraphQL as a wire protocol in the future, so "GraphQL" really isn't something you should be thinking about as a developer who is using Prisma.

    Hope that clarifies the situation a bit, let me know if you have any further questions around this topic.

    [1] https://github.com/prisma/prisma1/issues/5208

  • Why is Prisma so popular and who the hell is using it for production?
    8 projects | /r/node | 4 Aug 2022
    Could you clarify this? Are you referring to the old Prisma 1 Cloud or the new Prisma Data Platform?
  • Comparing 4 popular NestJS ORMs
    6 projects | dev.to | 22 Jun 2022
    First released in 2019, Prisma is the newest ORM of the four we discussed. It will need time to get to a more mature state. Recently, the release of version 3 introduced a few breaking changes. There are also some existing issues noted in GitHub, such as that it does not support some Postgres column types.
  • Preferred SQL ORM
    6 projects | /r/node | 16 Oct 2021
    Mongoose is quite a standard also open-source, but Prisma is an emerging modern solution that seems to take the cake.
  • What is Blitz.js & How to Get Started With It
    4 projects | dev.to | 14 Oct 2021
    Well, here comes Blitz, the agnostic monolith. Take the database, for example - Blitz comes out-of-the-box with Prisma 2. However, you're free to switch to another one like Fauna or DynamoDB. The same goes for the configuration; deciding a folder structure, defining routing conventions, selecting a styling library, and adding authorization and authentication are all set up by default, but that doesn't mean you cannot go your own way.
  • Rakkas: Next.js alternative powered by Vite
    13 projects | dev.to | 14 Oct 2021
    There is also a RealWorld port (Rakkas implementation of the RealWorld specification), a simple but complete fullstack application demonstrating how to approach building a REST API, accessing your database (via Prisma), handling authentication, testing, and more.
  • Starting out with a Typescript role, any killer library recommendations I should know about?
    7 projects | /r/typescript | 19 Sep 2021
    For a different direction, there’s Prisma. A lot of people love it and they do a ton of developer outreach. I bet someone from the company that makes it will show up to comment now that their name has been mentioned. They released a schema migration tool sometime in the last six months that looks amazing and would probably convince me to give it a go if I was starting a new project. https://www.prisma.io/
  • Frameworks War
    5 projects | dev.to | 13 Sep 2021
    Express + Prisma
  • SE Internship Log[5]
    2 projects | dev.to | 7 Sep 2021
    One of the steps was seeding a database in a Prisma project. The Prisma CLI exposes a seed command, but at the time of writing this, it's a preview-feature and its implementation is being redesigned.

Objection.js

Posts with mentions or reviews of Objection.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-11.
  • Top 6 ORMs for Modern Node.js App Development
    7 projects | dev.to | 11 Oct 2023
    Objection.js is a SQL-friendly ORM for Node.js that supports various relational databases, including PostgreSQL, MySQL, and SQLite. It provides a flexible and expressive query builder. Objection.js is known for its expressive syntax, allowing developers to build complex queries easily. It supports eager loading, transactions, and migrations.
  • Best ORM library?
    2 projects | /r/node | 19 May 2023
    I don't think there's a best per say, but we did recently use Objection on our project. Did the job well, only issue is there's no constructor for the DB Models but it's just something you work around (https://vincit.github.io/objection.js/)
  • Simple postgres 'ORM' for node project?
    2 projects | /r/node | 19 Jan 2023
    If you aren't using TypeScript I'd very much recommend Objection.js, I've used it multiple times and no complaints so far. You can pass raw SQL queries to it as well so I'm sure it would be a good fit for your project!
  • Which ORM are you using with Node?
    2 projects | /r/node | 6 Jan 2023
  • Well, shit. Objection.js has been sunset, which ORM/querybuilder did you move to?
    7 projects | /r/node | 3 Dec 2022
  • Exploring the repository pattern with TypeScript and Node
    5 projects | dev.to | 25 Oct 2022
    Next, let’s set up the database for our newly created Nest application. I’ll be using PostgreSQL, but you can use any of the databases Knex supports. To interact with our database, we’ll be using Objection.js, which is an ORM for Node.js built on top Knex. For this tutorial, we’ll be using Nest Objection, a Nest module for Objection.
  • an advise for a Node.js ORM other than Prisma
    6 projects | /r/node | 28 Jul 2022
    Objection.js is a very good one https://vincit.github.io/objection.js/
  • Why Sveltekit
    5 projects | dev.to | 27 Jun 2022
    After getting familiar with svelte, I started my project on Sapper, the predecessor of Sveltekit. Sapper was an easier take for me compared to the alternatives, and I enjoyed exploring js-land using a "non-express" node based framework. I also ventured into tailwind for the front-end UI, and Objection JS (a superset of Knex) for backend database access. I was in nirvana!
  • 2022 ExpressJS Cheatsheet
    5 projects | dev.to | 8 Apr 2022
  • Side Project - Tode-CLI, A tool for scaffolding nodejs projects
    3 projects | dev.to | 15 Dec 2021
    import BaseModel from "../BaseMode"; export class User extends BaseModel { // Name of table that this model maps back to // Table name is the only required property. public static tableName = 'ENTER_TABLE_NAME'; // Example property public foo!: string; // Add other table fields (columns) as properties to access them via the model // Define the relations to other models. // READ MORE at https://vincit.github.io/objection.js/guide/relations.html public static relationMappings = () => ({ // specify relation with other modules }) }

What are some alternatives?

When comparing prisma1 and Objection.js you can also consider the following projects:

Sequelize - Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.

TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.

Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

Bookshelf - A simple Node.js ORM for PostgreSQL, MySQL and SQLite3 built on top of Knex.js

Mongoose - MongoDB object modeling designed to work in an asynchronous environment.

node-mssql - Microsoft SQL Server client for Node.js

MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.

sveltekit-prisma - A sample repository to show how SvelteKit and Prisma work together.

uuid-mongodb - 📇 Generates and parses MongoDB BSON UUIDs

Massive

inertia-laravel - The Laravel adapter for Inertia.js.

pg-promise - PostgreSQL interface for Node.js