The examples in these docs start with querying tables, and only afterwards go "oh, it also works with views, if you need more complex filtering".
Right, and from my experience the automatic CRUD endpoints don't deal well with views unless you annotate the view with postgrest-specific comments, which seems rather icky to me.
Re:PostgREST
by ruslan_talpa on Monday November 04, 2019 @09:42AM
(#21442051)
you are confusing postgrest with postgraphile :)
Good point. Whoops.
Re:PostgREST
by ruslan_talpa on Monday November 04, 2019 @12:53AM
(#21439329)
You can’t just throw complexity at ppl from the first lines of documentation especially when talkin about new ideas
My understanding is there is no direct-to-table access with PostgREST; you're only ever interacting with views. Keep your view api versions in separate schemas. If you change your tables, yes, you'll need to update your views, but I don't see how that's much different than having to modify ORM code to accommodate schema changes.