Does TypeORM supports raw SQL queries for input and output?

Roel picture Roel · Jun 12, 2017 · Viewed 34.4k times · Source

I would like to know if there is a feature of TypeORM that supports raw sql queries for Insert Update Delete Select etc..

Answer

Roel picture Roel · Jun 12, 2017

According to this issue comment, TypeORM enables you to use any queries to your heart's content. using entityManager.query() Here is the documentation.

UPDATE

Link above is outdated, try this instead entity-manager-api.

const rawData = await manager.query(`SELECT * FROM USERS`);