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
$ PGRST_DB_ANON_ROLE='postgrest_test_anonymous' postgrest-with-postgresql-14 postgrest-run
curl 'localhost:3000/projects?select=*,wrong(*)'
{"code":"PGRST200","details":null,"hint":"Verify that 'projects' and 'wrong' exist in the schema 'test' and that there is a foreign key relationship between them. If a new relationship was created, try reloading the schema cache.","message":"Could not find a relationship between 'projects' and 'wrong' in the schema cache"}
I was thinking that ideally the phases/modules in the codebase should be like:
ApiRequest(doesn't open a tx, doesn't need schema cache) ->
DbRequestBuilder(doesn't open a tx, needs schema cache) ->
QueryBuilder/Statements (opens a tx, needs schema cache) ->
DB
For solving this we need a refactor on
DbRequestBuilder.hs
/App.hs
.The text was updated successfully, but these errors were encountered: