Closed cocodrino closed 4 years ago
Do you have multiple entities with the same name (Books
)? The validation you have triggered is there to disallow using multiple decorators on one property, but it is also triggered when there are multiple entities with same name.
If this is something you experienced after renaming an entity, be sure to wipe your dist
and temp
folders as it might be simply caused by old cache.
thanks @B4nan, at the end I followed the file structure from https://github.com/mikro-orm/nestjs-example-app and works correctly, not sure what was the problem
Hello!..I've a few questions, I've a few questions:
1) there is some convention about the name of my entities?: I'm following this tutorial https://www.adictosaltrabajo.com/2018/03/05/introduccion-a-nestjs/
and notice for instance, that I get an error if my service is named books but my entity is name book (missing the s at the end)
after rename the file I'm getting the error mentioned in the title, which is pretty weird because I only have a property title..my entity is
and my service is
books.service.ts
my books.module.ts
and my app module
do you notice some mistake here?
thank you