nestjs icon indicating copy to clipboard operation
nestjs copied to clipboard

fix: do not try to create repository for abstract schema

Open thiagomini opened this issue 2 years ago • 2 comments

Closes #131

thiagomini avatar Nov 01 '23 14:11 thiagomini

Hey @B4nan , could you help me out with this PR? I'm trying to run yarn lint --fix in the project but it does not fix it. I believe this is using a different configuration.

This PR solves the issue I mentioned a while ago - the Nest module is trying to register repositories even for abstract schemas.

thiagomini avatar Nov 02 '23 12:11 thiagomini

Just remove the trailing space? image

B4nan avatar Nov 02 '23 12:11 B4nan

I will close this, nowadays you can let the base entities be discovered automatically via references with EntitySchema too, just put the schema instance into the extends value. It's now done in all the examples in the docs this way.

B4nan avatar May 19 '24 17:05 B4nan