feat: add limited delete
This commit is contained in:
committed by
Steve Chavez
parent
f4becf99ad
commit
331e88ea39
@@ -332,7 +332,7 @@ mutateRequest mutation schema tName ApiRequest{..} pkCols readReq = mapLeft ApiR
|
||||
then Right $ Insert qi iColumns body (Just (MergeDuplicates, pkCols)) combinedLogic returnings
|
||||
else
|
||||
Left InvalidFilters
|
||||
MutationDelete -> Right $ Delete qi combinedLogic returnings
|
||||
MutationDelete -> Right $ Delete qi combinedLogic (iTopLevelRange, pkCols) returnings
|
||||
where
|
||||
confCols = fromMaybe pkCols qsOnConflict
|
||||
QueryParams.QueryParams{..} = iQueryParams
|
||||
|
||||
@@ -141,6 +141,7 @@ data MutateQuery
|
||||
| Delete
|
||||
{ in_ :: QualifiedIdentifier
|
||||
, where_ :: [LogicTree]
|
||||
, mutRange :: (NonnegRange, [FieldName])
|
||||
, returning :: [FieldName]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user