ViewEntity

    0

    3

    nyj001012

    Create view entity using TypeORM

    Shortcut: CreateViewEntity

    import { ViewEntity, ViewColumn, DataSource } from 'typeorm';
    
    @ViewEntity({
      expression: (Data: DataSource) => Data
        .createQueryBuilder()
    })
    class ViewEntity {
      @ViewColumn()
      column: null;
    }
    
    export default ViewEntity;
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.