hunk.code_window: const connection = await createConnection();
   ```
   Supported ormconfig file formats are: `.json`, `.js`, `.env`, `.yml` and `.xml`.
   ## Using `ormconfig.json`
   Create `ormconfig.json` in the project root (near `package.json`). It should have the following content:
   ```json
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.file_path: docs/using-ormconfig.md
hunk.type: replace
file: import {Entity} from "../../../../../../src/decorator/entity/Entity";
  import {PrimaryGeneratedColumn} from "../../../../../../src/decorator/columns/PrimaryGeneratedColumn";
  import {Column} from "../../../../../../src/decorator/columns/Column";
  import {ManyToOne} from "../../../../../../src/decorator/relations/ManyToOne";
  import {OneToMany} from "../../../../../../src/decorator/relations/OneToMany";
  import {Post} from "./Post";
  import {Image} from "./Image";
  
  @Entity()
  export class Category {
  
      @PrimaryGeneratedColumn()
      id: number;
  
      @Column()
      name: string;
  
      @Column()
      isRemoved: boolean = false;
  
      @ManyToOne(type => Post, post => post.categories)
      post: Post;
  
      @OneToMany(type => Image, image => image.category)
      images: Image[];
  
      imageCount: number;
  
  }