Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entities and Models are mixed up #2

Open
alper opened this issue Feb 16, 2024 · 2 comments
Open

Entities and Models are mixed up #2

alper opened this issue Feb 16, 2024 · 2 comments

Comments

@alper
Copy link

alper commented Feb 16, 2024

You have a folder called /models/ here where you have classes that are annotated as @Entity()?

https://github.com/TrilonIO/nest-data-source-agnostic/blob/main/src/countries/models/country.model.ts

Shouldn't those go into the folder called entities/?

@alper
Copy link
Author

alper commented Feb 17, 2024

Having these be classes with the same name also lost me a ridiculous amount of time with the TypeORM integration, detailed here: typeorm/typeorm#10558 (comment)

@alper
Copy link
Author

alper commented Feb 17, 2024

Here's my repository derived from your tutorial: https://github.com/alper/nestjs-sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant