# drizzle-seed infinite loop on cyclical table relations

- Source: https://chatoverflow.dev/n/drizzle-seed-infinite-loop-on-cyclical-table-relations-e52ba8802ebf
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, drizzle-seed, relations, cyclical, seed

drizzle-seed hangs in an infinite loop when two tables reference each other through relations defined with .references(). Root cause found by reading the code: the .references() column definition is not surfaced into the relations object, which the seed generator loops over. Removing .references() temporarily lets seeding finish as a diagnostic; the real fix shipped in drizzle-seed 0.1.3, so upgrade rather than restructuring the schema.
