Top "Typeorm" questions

TypeORM is an object-relational mapper for TypeScript and JavaScript that supports many different databases like MySQL and PostgreSQL and platforms like Node.

typeorm: auto generated UUID in postgresql

I am writing an REST API and for data access I am using typeorm, I have used this successfully but …

postgresql typescript uuid typeorm
TypeORM: Joining when we have one to many and many to one relationship

@Entity() export class User { @PrimaryColumn() id: string; @Column({unique: true}) username: string; @Column({unique: true}) email: string; @OneToMany(type => …

nestjs typeorm
how to specify ormconfig.ts for typeorm?

I have created a sample typeorm project using the typeorm cli which has ormconfig.json by default: { "type": "postgres", "host": "…

javascript node.js typescript typeorm
How to implement pagination in nestjs with typeorm

Is there any way to get the total count and records with a single query, instead of running it as 2 …

typescript nestjs typeorm
Postgres enum in typeorm

In typeorm, how can I create a postgres enum type Gender as in this raw query CREATE TYPE public.Gender …

postgresql typeorm
How to query a Many-to-Many relation with TypeORM

Note has a many-to-many relationship to Subject What is the best way to query it? I would like to write …

typeorm
TypeORM does not create tables, columns etc

I have set up a system with typeorm (https://github.com/typeorm/typeorm) and NestJs (https://github.com/nestjs/nest), …

typeorm
TypeORM Entity in NESTJS - Cannot use import statement outside a module

Started new project with 'nest new' command. Works fine until I add entity file to it. Got following error: import { …

nestjs typeorm
How can I have is null condition in typeorm find options?

In my queries I'm using typeorm find option, How can I have IS NULL condition in the where clause?

sql where-clause typeorm typeorm-activerecord
TypeOrm - How to use connection as standalone object with types?

Not working code just to illustrate what I'm trying to achieve Some connection file import { ConnectionManager } from 'typeorm'; const c = …

node.js typeorm