How can I gradually migrate schema definition to defineEntity from ts-morph? #7405
-
|
I currently have entities defined with classes and decorators, therefore using I tried to do this like this: return defineConfig({
entities: ["./dist/**/*.entity.js", "!./dist/**/sample.entity.js", SampleSchema],
entitiesTs: ["./src/**/*.entity.ts", "!./src/**/sample.entity.ts"],
dbName: "api-main",
metadataProvider: TsMorphMetadataProvider,
...
});But then this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You surely can. It was ignored because you only added it to |
Beta Was this translation helpful? Give feedback.
You surely can. It was ignored because you only added it to
entitiesand skipped it fromentitiesTs(which is what is used during development). Those options need to be aligned.