Best ORM for use with Typescript?

This page summarizes the projects mentioned and recommended in the original post on /r/typescript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • bookshelf-orm

    OR-Mapping based on Bookshelf.js

  • That one builds on bookshelf: https://github.com/geoinfo-applications/bookshelf-orm

  • docs.nestjs.com

    The official documentation https://docs.nestjs.com 📕

  • One of the core members of the NestJS team here: I agree. I see so many posts about how Mikro is light years ahead of TypeORM. I'm personally not really for ORMs in general, but I wish Kamil didn't go and create @nestjs/sequelize. I believe he created the @nestjs/typeorm package before Mikro got too much steam and popularity. There's also discussion in a PR about adding a recipe for MikroORM so that the community becomes more aware of it.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • 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.

  • Well, for one TypeORM seems to support polymorphic relationships using this method, and while I know it's a workaround, at least it's an option.

  • nestjs-auth-graphql-mikroorm-starter

    A NestJS boilerplate with authentication, GraphQL and MikroORM.

  • I see, thanks! I'm actually working on implementing that in my MikroORM NestJS boilerplate which is a copy of my TypeORM version of that. I'm mostly just a little worried about production performance and stability, but at least MikroORM uses KnexJS under the hood so I have a very familiar query builder to work with if issues arise whereas TypeORM's query builder isn't that great IMHO.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts