error while querying "Converting circular structure to JSON"

whenever i do a query on driver table, it just gives me following error
Converting circular structure to JSON
--> starting at object with constructor 'PgTable'
| property 'id' -> object with constructor 'PgUUID'
--- property 'table' closes the circle
Converting circular structure to JSON
--> starting at object with constructor 'PgTable'
| property 'id' -> object with constructor 'PgUUID'
--- property 'table' closes the circle
please run this container to see error in detail https://drizzle.run/t4x4te3roxu31a7vp8b1a7mq
2 Replies
rphlmr ⚡
rphlmr ⚡5mo ago
https://github.com/rphlmr/drizzle-run/releases/tag/v0.5.0 I found the root cause: everything that is not serializable will throw this error. I will try to come back on this later
GitHub
Release v0.5.0 · rphlmr/drizzle-run
What's Changed Hey 👋 some new things for this release! Goodies in Schema (#20) You can now use $.faker for $default and $defaultFn name: text("name") .notNull() .$defaultFn(...
viralgupta
viralguptaOP5mo ago
thanks @Raphaël M (@rphlmr) ⚡ , maybe throw this error on drizzle-orm packagae too.
Want results from more Discord servers?
Add your server