Type issue when creating self join
I have the following:
If I comment out parentId then I get the type for medusaCategories. Otherwise I get the error:
'medusaCategories' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer
How to resolve? Thanks2 Replies