I created a REST API using NestJs with TypeORM. Basically this is my user entity  @Entity('User') export class User extends BaseEntity {   @PrimaryGeneratedColumn()   public id: number;    @Column({ unique: true })   public username: string;...
I'm trying since 2 days to solve this, perhaps I'm simply missing the point here.  My goal was to write a NestJS app (with TypeORM included) which serves a RestAPI for 2 or 3 of my little projects, instead of writing a NestJS-App for every si...
I'm using TypeORM with the fallowing configuration file: ormconfig.json  { "type": "mysql", "host": "localhost", "port": 3306, "username": "root", "password": "my-secret-pw",...
I am a beginner in Nest.js and I found it extremely good. I read the official docs and learned about DTOs. When My Body is like this:    {   "username" : "username",   "password" : "password" }     then I can simply cr...
I have a column kid_ages which is Integer[]. When migrating, I get the following error:  DataTypeNotSupportedError: Data type "Array" in "home.kid_ages" is not supported by "postgres" database.  I tried adding the following op...
I've created a ormconfig.env file in the nestjs starter project and put the variables from this documentation in there and added this line here  @Module({   imports: [     TypeOrmModule.forRoot(),     TaskModule,   ], }) export class AppModule {...
I want to create a simple relation between a user and documents in TypeGraphQL. So a user can create unlimited documents and a document has only one creator. But I am receiving an error.  User  import { Entity, PrimaryGeneratedColumn, Column, BaseEnt...
I am trying to get the following example working https://github.com/typeorm/javascript-example/tree/master/src/app3-es6  I am running into the following error  Error         at new RepositoryNotFoundError (...\node_modules\typeorm\connection\error\Re...
api.controller.ts  @Controller('api') export class ApiController {   constructor() {}    @Post()   @Transaction()   async root(@Req() req: Request, @Res() res: Response, @TransactionManager() manager: EntityManager): Promise<void> {...
Using typeorm, I connect to the mysql db. Several tables already exist in the database. I try to describe a table using the entity module, but my definition overwrites an existing table. How with entity I can fully inherit from an existing table?  im...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.