Support for relational queries with views
Hello! I was wondering if there are plans to add support for relational queries with views? I am not presently able to define
relations
on a view as it is expecting a table as the first argument.
Thanks!2 Replies
Good catch, could you create a GH issue for that please?
I've found a trick. You can define the view natively in the db, and then a table in the schema, and it works. I guess there's still WIP with view ...
https://github.com/drizzle-team/drizzle-orm/issues/769
GitHub
[BUG]: Can' use views with relations API · Issue #769 · drizzle-tea...
What version of drizzle-orm are you using? 0.26.5 What version of drizzle-kit are you using? No response Describe the Bug I can't use a pgView with the relations API. Example: export const user...