@infrab4a/connect 5.1.1-beta.5 → 5.1.1-beta.7

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 CHANGED
@@ -2925,8 +2925,8 @@ AttributeOptionHelper.FindByAttribute = (attributeName, fields) => {
2925
2925
  attributeName,
2926
2926
  columnName: attributeName.toString(),
2927
2927
  ...fieldOption,
2928
- to: fieldOption.to || ((value) => value),
2929
- from: fieldOption.from || ((value) => value),
2928
+ // to: fieldOption.to || ((value) => value),
2929
+ // from: fieldOption.from || ((value) => value),
2930
2930
  };
2931
2931
  };
2932
2932
  AttributeOptionHelper.CheckIsColumnOption = (fieldValue) => !!fieldValue?.columnName;
@@ -3922,7 +3922,15 @@ class HasuraGetVariablesHelper {
3922
3922
  const value = columnOption?.to?.(identifiers[identifier], instance) ||
3923
3923
  identifiers[identifier];
3924
3924
  console.warn('columnOption value', value);
3925
- console.warn('columnOption ...ids', ...ids);
3925
+ console.warn('columnOption ...ids', ids);
3926
+ console.warn('columnOption return', {
3927
+ ...ids,
3928
+ [columnOption.columnName]: {
3929
+ type: repository.getAttributeGraphQLTypeOf(columnOption.type || value),
3930
+ value,
3931
+ required: true,
3932
+ },
3933
+ });
3926
3934
  return {
3927
3935
  ...ids,
3928
3936
  [columnOption.columnName]: {
package/index.esm.js CHANGED
@@ -2900,8 +2900,8 @@ AttributeOptionHelper.FindByAttribute = (attributeName, fields) => {
2900
2900
  attributeName,
2901
2901
  columnName: attributeName.toString(),
2902
2902
  ...fieldOption,
2903
- to: fieldOption.to || ((value) => value),
2904
- from: fieldOption.from || ((value) => value),
2903
+ // to: fieldOption.to || ((value) => value),
2904
+ // from: fieldOption.from || ((value) => value),
2905
2905
  };
2906
2906
  };
2907
2907
  AttributeOptionHelper.CheckIsColumnOption = (fieldValue) => !!fieldValue?.columnName;
@@ -3897,7 +3897,15 @@ class HasuraGetVariablesHelper {
3897
3897
  const value = columnOption?.to?.(identifiers[identifier], instance) ||
3898
3898
  identifiers[identifier];
3899
3899
  console.warn('columnOption value', value);
3900
- console.warn('columnOption ...ids', ...ids);
3900
+ console.warn('columnOption ...ids', ids);
3901
+ console.warn('columnOption return', {
3902
+ ...ids,
3903
+ [columnOption.columnName]: {
3904
+ type: repository.getAttributeGraphQLTypeOf(columnOption.type || value),
3905
+ value,
3906
+ required: true,
3907
+ },
3908
+ });
3901
3909
  return {
3902
3910
  ...ids,
3903
3911
  [columnOption.columnName]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.1.1-beta.5",
3
+ "version": "5.1.1-beta.7",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },