Drizzle TeamDT
Drizzle Team5mo ago
10 replies
Tony

Invalid relation

I've been following https://orm.drizzle.team/docs/relations to try and make a many to many relation between one table (users to users, each user can have friends) but when I try run studio to see it work this happens:
Failed to extract relations. This is likely due to ambiguous or misconfigured relations.
Please check your schema and ensure that all relations are correctly defined.
See: https://orm.drizzle.team/docs/relations#disambiguating-relations
Error message: Invalid relation "friends" for table "users"
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Was this page helpful?