fix: bad M2M embed on RPC
This commit is contained in:
committed by
Steve Chavez
parent
cca0b5ae66
commit
cb99270a8f
@@ -1,8 +1,6 @@
|
||||
{-# LANGUAGE NamedFieldPuns #-}
|
||||
module PostgREST.Plan.ReadPlan
|
||||
( ReadPlanTree
|
||||
, ReadPlan(..)
|
||||
, fstFieldNames
|
||||
, JoinCondition(..)
|
||||
) where
|
||||
|
||||
@@ -46,8 +44,3 @@ data ReadPlan = ReadPlan
|
||||
-- ^ used for aliasing
|
||||
}
|
||||
deriving (Eq)
|
||||
|
||||
-- First level FieldNames(e.g get a,b from /table?select=a,b,other(c,d))
|
||||
fstFieldNames :: ReadPlanTree -> [FieldName]
|
||||
fstFieldNames (Node ReadPlan{select} _) =
|
||||
fst . (\(f, _, _) -> f) <$> select
|
||||
|
||||
Reference in New Issue
Block a user