Relational queries with planetscale - findMany etc undefined
Hey there! I am trying setup drizzle orm with relational queries with planetscale, but not sure how to debug this.
I am following the docs on the setup for this, but after the setup it seems to not find the correct APIs.
kit
Connection Setup :
Usage: Here I get a error -

TypeError: Cannot read properties of undefined (reading 'findMany')
5 Replies
Oh! I believe it's
Would you mind checking that?
Aha! Now its screaming at items -
TS2339: Property items does not exist on type {}
in IDE,
But in console it seems to still scream this for some reason even though I see in the IDE it finds the findMany api :
TypeError: Cannot read properties of undefined (reading 'findMany')
I think your schema is wrong here (tho I'm not sure, since I don't know what these items actually are)
If the items in it are the table objects then you don't need to unpack them
Ah you are right! This solved it ✅ The items are the table objects, thank you 

Anytime.