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
Since v10.0.0, many-to-many relationships are not discovered properly. Last known working version: v9.0.1 (couldn't test the releases between due to #2410 ).
Schema:
CREATE ROLE data_admin nologin;
CREATESCHEMAapi;
GRANT USAGE ON SCHEMA api TO data_admin;
CREATETABLEapi.test_a (id textPRIMARY KEY);
CREATETABLEapi.test_b (id textPRIMARY KEY);
CREATETABLEapi.test_mapping (id_a textNOT NULLREFERENCESapi.test_a(id), id_b textNOT NULLREFERENCESapi.test_b(id));
INSERT INTOapi.test_aVALUES ('value for A');
INSERT INTOapi.test_bVALUES ('value for B');
INSERT INTOapi.test_mappingVALUES ('value for A', 'value for B');
GRANTSELECTON ALL TABLES IN SCHEMA api TO data_admin;
{
"code": "PGRST200",
"details": "Searched for a foreign key relationship between 'test_a' and 'test_b' in the schema 'api', but no matches were found.",
"hint": "Perhaps you meant 'test_mapping' instead of 'test_b'.",
"message": "Could not find a relationship between 'test_a' and 'test_b' in the schema cache"
}
Was this change done intentionally for v10? If so, please close this issue, since the current documentation states the composite key requirement.
The text was updated successfully, but these errors were encountered:
Environment
Description of issue
Since v10.0.0, many-to-many relationships are not discovered properly. Last known working version: v9.0.1 (couldn't test the releases between due to #2410 ).
Schema:
Docker compose service:
API call:
Expected response:
Actual response:
Was this change done intentionally for v10? If so, please close this issue, since the current documentation states the composite key requirement.
The text was updated successfully, but these errors were encountered: