4 ms·
Besides using an ORM that would hide the renaming or views, why not build an API layer ?
by johnchristopher 5y ago
Besides using an ORM that would hide the renaming or views, why not build an API layer ?
- _3u10 5y agoBecause Postgres views enforce API versioning in ways that don’t break older clients. Pretty much any schema modification that would break an older client is forbidden by REPLACE VIEW. It is certainly possible to break older clients but you have to work at it. Also… you don’t want to build an API layer because postgrest builds one for you. One that is close to on par with GraphQL (arbitrary joins / filters)