I'm using TypeORM with the fallowing configuration file: ormconfig.json  { "type": "mysql", "host": "localhost", "port": 3306, "username": "root", "password": "my-secret-pw",...
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...
How to create a connection pool using TypeOrm? While exploring TypeOrm, I wanted to create pool of connections for working with MySql   Below is the code snippet :   import { createConnection } from 'typeorm';  export const databaseProviders...
I'm running into an issue when running a test server after adding a new Item entity that has a ManyToOne relationship with an inventory entity. In PGAdmin4, an Item table is shown that looks correct when comparing it to my Inventory table, so I&#...
I have read all the documentation for TypeORM, but it doesn't say how to create a bidirectional one-to-many relation.  It says:     In many-to-one / one-to-many relation, the owner side is always many-to-one. It means that the class that uses @Ma...
This is really an unexpected problem.  When I type in the terminal "npm run start", there's an error.  [Nest] 40671   - 2018-10-20 17:46:37   [ExceptionHandler] Nest can't resolve dependencies of the USERRepository (?). Please make su...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.