Skip to content
Snippets Groups Projects
Commit 95d1ca62 authored by Vivek Dutta's avatar Vivek Dutta
Browse files

Updated allowPartial default to true for Add/Del operations

parent 624e9810
No related branches found
No related tags found
No related merge requests found
Pipeline #195130 passed
...@@ -27,7 +27,7 @@ const makePair = (value): [string, any, boolean][] => ...@@ -27,7 +27,7 @@ const makePair = (value): [string, any, boolean][] =>
const encode: EncodeFn = ({ value, path }) => { const encode: EncodeFn = ({ value, path }) => {
const [paths, values] = parseSetArgs(value, path); const [paths, values] = parseSetArgs(value, path);
const allowPartial = const allowPartial =
(values && values.some((it) => it.allowPartial)) || false; (values && values.some((it) => it.allowPartial)) || true;
const createObjs = paths.map((path, i) => ({ const createObjs = paths.map((path, i) => ({
lookup: "Add.CreateObject" as AddLookupCreateObject, lookup: "Add.CreateObject" as AddLookupCreateObject,
......
...@@ -19,7 +19,7 @@ const encode: EncodeFn = ({ paths, allowPartial }) => ({ ...@@ -19,7 +19,7 @@ const encode: EncodeFn = ({ paths, allowPartial }) => ({
lookup: "Request", lookup: "Request",
delete: { delete: {
objPaths: Array.isArray(paths) ? paths : [paths], objPaths: Array.isArray(paths) ? paths : [paths],
allowPartial: allowPartial || false allowPartial: allowPartial || true
}, },
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment