refactor: aliasing logic to addRels
* also shorten query builder alias logic
This commit is contained in:
committed by
Steve Chavez
parent
5f5a0c7764
commit
c8b39c6cde
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user