Wrong cardinality is inferred
I have two tables,
Because of the
The thing is, postgrest(?) sees a one-to-many cardinality where it logically should be one-to-one based off the constraints. I also think this prevents the newly added automatic
public.users and public.users_roles, that are set up like so:Because of the
updated_by_id columns, postgrest requires that I disambiguate the target when doing a join. This is fine and can be done easily with something like:The thing is, postgrest(?) sees a one-to-many cardinality where it logically should be one-to-one based off the constraints. I also think this prevents the newly added automatic
single() on join feature to take effect. Is there a way to enforce the right cardinality? Am I missing a constraint?