@infrab4a/connect 5.1.1-beta.1 → 5.1.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +8 -1
- package/index.esm.js +8 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -2921,7 +2921,13 @@ AttributeOptionHelper.FindByAttribute = (attributeName, fields) => {
|
|
|
2921
2921
|
return { columnName: attributeName.toString(), attributeName };
|
|
2922
2922
|
if (Array.isArray(fieldOption))
|
|
2923
2923
|
return { columnName: attributeName.toString(), attributeName, fields: fieldOption };
|
|
2924
|
-
return {
|
|
2924
|
+
return {
|
|
2925
|
+
attributeName,
|
|
2926
|
+
columnName: attributeName.toString(),
|
|
2927
|
+
...fieldOption,
|
|
2928
|
+
to: (value) => value,
|
|
2929
|
+
from: (value) => value,
|
|
2930
|
+
};
|
|
2925
2931
|
};
|
|
2926
2932
|
AttributeOptionHelper.CheckIsColumnOption = (fieldValue) => !!fieldValue?.columnName;
|
|
2927
2933
|
AttributeOptionHelper.FindColumnOptionFromList = (columnName, fields) => {
|
|
@@ -3469,6 +3475,7 @@ class HasuraDeleteVariablesHelper {
|
|
|
3469
3475
|
if (lodash.isNil(instance.identifier[identifierBinded]))
|
|
3470
3476
|
return ids;
|
|
3471
3477
|
const columnOption = AttributeOptionHelper.FindByAttribute(identifier, fields);
|
|
3478
|
+
console.warn('columnOption', columnOption);
|
|
3472
3479
|
const value = columnOption?.to(identifiers[identifier], instance) ||
|
|
3473
3480
|
identifiers[identifier];
|
|
3474
3481
|
return {
|
package/index.esm.js
CHANGED
|
@@ -2896,7 +2896,13 @@ AttributeOptionHelper.FindByAttribute = (attributeName, fields) => {
|
|
|
2896
2896
|
return { columnName: attributeName.toString(), attributeName };
|
|
2897
2897
|
if (Array.isArray(fieldOption))
|
|
2898
2898
|
return { columnName: attributeName.toString(), attributeName, fields: fieldOption };
|
|
2899
|
-
return {
|
|
2899
|
+
return {
|
|
2900
|
+
attributeName,
|
|
2901
|
+
columnName: attributeName.toString(),
|
|
2902
|
+
...fieldOption,
|
|
2903
|
+
to: (value) => value,
|
|
2904
|
+
from: (value) => value,
|
|
2905
|
+
};
|
|
2900
2906
|
};
|
|
2901
2907
|
AttributeOptionHelper.CheckIsColumnOption = (fieldValue) => !!fieldValue?.columnName;
|
|
2902
2908
|
AttributeOptionHelper.FindColumnOptionFromList = (columnName, fields) => {
|
|
@@ -3444,6 +3450,7 @@ class HasuraDeleteVariablesHelper {
|
|
|
3444
3450
|
if (isNil(instance.identifier[identifierBinded]))
|
|
3445
3451
|
return ids;
|
|
3446
3452
|
const columnOption = AttributeOptionHelper.FindByAttribute(identifier, fields);
|
|
3453
|
+
console.warn('columnOption', columnOption);
|
|
3447
3454
|
const value = columnOption?.to(identifiers[identifier], instance) ||
|
|
3448
3455
|
identifiers[identifier];
|
|
3449
3456
|
return {
|