"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
Try restarting your LSP. Maybe restarting your code editor.
I’ve tried both the error is throwing in ts build too 😅
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
Oh perfect! Thank you @Andrew Sherman