typescript express typeorm createconnection
问题 I am creating an app with typescript express node typeorm. I am having this issue where when I make a call through a service class to the database using typeorm, I get connection default was not found. Here are my code snippets: //dataservice class import { Connection, getConnection, EntityManager, Repository, getManager } from "typeorm"; export class LeaveDataService { private _db: Repository<Leave>; constructor() { this._db = getManager().getRepository(Leave); } /** * applyForLeave */