Subquery in insert().values()
I'm trying to use a subquery inside insert().values() but I can't seemed to solve this error.
Full schema:
https://github.com/dewodt/guess-astro/blob/main/db/schema.ts
Code:
The error says
I've spent hours on this one. I'm suspecting that drizzle doesnt support subqueries inside of insert()? Or is there something wrong with my query? Thank you.
Full schema:
https://github.com/dewodt/guess-astro/blob/main/db/schema.ts
Code:
The error says
I've spent hours on this one. I'm suspecting that drizzle doesnt support subqueries inside of insert()? Or is there something wrong with my query? Thank you.
GitHub
Guess Astro is a website to help students memorize astronomical objects for astronomy national/international science olympiad. - dewodt/guess-astro