refactor: aliasing logic to addRels

* also shorten query builder alias logic
This commit is contained in:
steve-chavez
2022-10-19 19:49:43 -05:00
committed by Steve Chavez
parent 5f5a0c7764
commit c8b39c6cde
3 changed files with 37 additions and 37 deletions
+3
View File
@@ -43,6 +43,9 @@ data ReadPlan = ReadPlan
, relHint :: Maybe Hint
, relJoinType :: Maybe JoinType
, depth :: Depth
-- depth is used bc when a self join occurs we
-- need to differentiate the parent from the child tables by having an alias like
-- "table_depth". See http://github.com/PostgREST/postgrest/issues/987.
}
deriving (Eq)