"mode" not defined in drizzle config 0.28.1

With the new update i've added the "mode" field for planetscale however my ts is mad at me
4 Replies
Angelelz
Angelelz17mo ago
Try restarting your LSP. Maybe restarting your code editor.
Fyzz
FyzzOP17mo ago
I’ve tried both the error is throwing in ts build too 😅
Andrii Sherman
Andrii Sherman17mo ago
This flag is available only for mysql2 driver and you are using PlanetScale serverless In PlanetScale serverless “mode:planetscale” is used by default And no mode is available It was done because for MySQL relational queries are using lateral joins in subqueries, which is not available in PlanetScale And when using mysql2 we are not sure which one are you using(MySQL or PlanetScale But for your case no mode needed
Fyzz
FyzzOP17mo ago
Oh perfect! Thank you @Andrew Sherman
Want results from more Discord servers?
Add your server