No query result types
When i'm doing
this.conn.query.organizations.findMany({})
there is no autocomplete for organizations
columns, it shows only relations (restaurants
)
this.conn is PostgresJsDatabase<typeof schema>
But if i specify
, it shows id
in autocomplete
How can I fix this, I want to see all fields in autocomplete5 Replies
Is this a bug?
You don't really need to define the coonection type.
Drizzle should be able to infer everything.
Can you send the code for creating the drizzle instance?
This looks good to me 😄
Maybe there's something wrong in the schema definition?
I found a way to fix this
If i specify
{ with: {} }
autocomplete works good