You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to...
This has been also described in #1622. My case is a TypeORM entity collection where I also use class-validator decorators. One of the entities is a polymorphic entity, therefore I use discriminator at the type to determine the type. However, since the type has a reverse relation, it results in circular dependency.
The problem:
Normally I avoid type-level circular dependencies by using type X in the import. However, since this is a runtime usage, I cannot avoid the class reference.
The text was updated successfully, but these errors were encountered:
I was trying to...
This has been also described in #1622. My case is a TypeORM entity collection where I also use class-validator decorators. One of the entities is a polymorphic entity, therefore I use discriminator at the type to determine the type. However, since the type has a reverse relation, it results in circular dependency.
The problem:
Normally I avoid type-level circular dependencies by using
type X
in the import. However, since this is a runtime usage, I cannot avoid the class reference.The text was updated successfully, but these errors were encountered: