Skip to content

How to seed data with monorepo workspace in nestjs #236

@Sotatek-PhuongNguyen4

Description

@Sotatek-PhuongNguyen4

I use monorepo to build the applications. I've some apps and libs

My code folder is below. How to write typeorm config file in my case for seeding data.

image

ormconfig.ts
image

package json seeding script

image

Error
image

The codebuild only has the main.js file. It doesn't have some file like .entity.js. So I think my ormconfig.ts file is wrong. Please help. Thanks you guys a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions