@infrab4a/connect 5.1.1-beta.4 → 5.1.1-beta.6
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 +12 -0
- package/index.esm.js +12 -0
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -3918,8 +3918,19 @@ class HasuraGetVariablesHelper {
|
|
|
3918
3918
|
if (lodash.isNil(instance[identifierBinded]))
|
|
3919
3919
|
return ids;
|
|
3920
3920
|
const columnOption = AttributeOptionHelper.FindByAttribute(identifier, fields);
|
|
3921
|
+
console.warn('columnOption', columnOption);
|
|
3921
3922
|
const value = columnOption?.to?.(identifiers[identifier], instance) ||
|
|
3922
3923
|
identifiers[identifier];
|
|
3924
|
+
console.warn('columnOption value', value);
|
|
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
|
+
});
|
|
3923
3934
|
return {
|
|
3924
3935
|
...ids,
|
|
3925
3936
|
[columnOption.columnName]: {
|
|
@@ -7635,6 +7646,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
7635
7646
|
return reviews;
|
|
7636
7647
|
}
|
|
7637
7648
|
async findCatalog(params, mainGender, options) {
|
|
7649
|
+
console.warn('findCatalog', { params, ...params.filters, published: true });
|
|
7638
7650
|
const result = await this.find({
|
|
7639
7651
|
...params,
|
|
7640
7652
|
filters: { ...params.filters, published: true },
|
package/index.esm.js
CHANGED
|
@@ -3893,8 +3893,19 @@ class HasuraGetVariablesHelper {
|
|
|
3893
3893
|
if (isNil(instance[identifierBinded]))
|
|
3894
3894
|
return ids;
|
|
3895
3895
|
const columnOption = AttributeOptionHelper.FindByAttribute(identifier, fields);
|
|
3896
|
+
console.warn('columnOption', columnOption);
|
|
3896
3897
|
const value = columnOption?.to?.(identifiers[identifier], instance) ||
|
|
3897
3898
|
identifiers[identifier];
|
|
3899
|
+
console.warn('columnOption value', value);
|
|
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
|
+
});
|
|
3898
3909
|
return {
|
|
3899
3910
|
...ids,
|
|
3900
3911
|
[columnOption.columnName]: {
|
|
@@ -7610,6 +7621,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
7610
7621
|
return reviews;
|
|
7611
7622
|
}
|
|
7612
7623
|
async findCatalog(params, mainGender, options) {
|
|
7624
|
+
console.warn('findCatalog', { params, ...params.filters, published: true });
|
|
7613
7625
|
const result = await this.find({
|
|
7614
7626
|
...params,
|
|
7615
7627
|
filters: { ...params.filters, published: true },
|