You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constdb=withReplicas(primaryDb,[readDb])constsubquery=db.$with('changes').as(db.select().from(users))// ^ $with is undefined
Expected behavior
$with should work, or the type should be different.
I'm happy to specify if i'm using the primary or a read replica, or construct the query another way if possible.
As-is, the types suggest this works when it doesn't.
Environment & setup
I am using node-postgres as my database.
The text was updated successfully, but these errors were encountered:
What version of
drizzle-orm
are you using?0.29.3
What version of
drizzle-kit
are you using?0.20.10
Describe the Bug
Expected behavior
$with should work, or the type should be different.
I'm happy to specify if i'm using the primary or a read replica, or construct the query another way if possible.
As-is, the types suggest this works when it doesn't.
Environment & setup
I am using node-postgres as my database.
The text was updated successfully, but these errors were encountered: