Query View syntax error at or near "$1"
I've declared my view like such
And then when i query my view
I get the syntax error
When printing out the sql of it via
Gives me these results
What am i missing? Any direction would be greatly appreciated 🙏
Im on drizzle orm version 0.30.9
1 Reply
I should add, normal querying against tables via the
does work fine
if i toggle it from a
to
it works
Ok I found the issue, and i will keep my post here for my shame and in hopes it helps someone else.
I didnt realize that my drizzle-orm/postgres-js was still on version 0.28.6
(im using Deno so its kinda funky how they do the imports)
Anyways, once i upgraded them all to version 0.30.9, it now queries as expected