William Pineda MHA
William Pineda MHA

Reputation: 295

can I query mysql databases in nest js without the need for TypeORM?

I'm learning NestJS, I'm currently reading about DB queries with TypeORM. However, I want to know if there is the possibility of doing native SQL queries (That is, without using any ORM)

Upvotes: 2

Views: 1338

Answers (1)

Moti
Moti

Reputation: 583

Of course, there is. It is even pointed out in the documentation:

You can also directly use any general purpose Node.js database integration library or ORM, such as MikroORM also check the recipe here, Sequelize (navigate to the Sequelize integration section), Knex.js (tutorial), TypeORM, and Prisma (recipe), to operate at a higher level of abstraction.

So feel free to use any technology you want. Personally I use kysely as a query builder

Upvotes: 3

Related Questions