@infrab4a/connect 0.13.0-beta.1 → 0.13.1-beta.1
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/bundles/infrab4a-connect.umd.js +6 -2
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/lib/domain/catalog/models/types/product-review.type.js +1 -1
- package/esm2015/lib/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +7 -3
- package/fesm2015/infrab4a-connect.js +7 -3
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/lib/domain/catalog/models/types/product-review.type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1567,8 +1567,12 @@
|
|
|
1567
1567
|
queryReference = queryReference.where(fieldName.toString(), '<=', options.value + "~");
|
|
1568
1568
|
return queryReference;
|
|
1569
1569
|
}
|
|
1570
|
-
if ((options === null || options === void 0 ? void 0 : options.operator) === exports.Where.IN
|
|
1571
|
-
|
|
1570
|
+
if ((options === null || options === void 0 ? void 0 : options.operator) === exports.Where.IN) {
|
|
1571
|
+
if (Array.isArray(options === null || options === void 0 ? void 0 : options.value))
|
|
1572
|
+
return queryReference.where(fieldName.toString(), 'array-contains', options.value);
|
|
1573
|
+
if (lodash.isString(options === null || options === void 0 ? void 0 : options.value))
|
|
1574
|
+
return queryReference.where(fieldName.toString(), 'in', options.value);
|
|
1575
|
+
}
|
|
1572
1576
|
if (lodash.isObject(options) && lodash.isNil(options === null || options === void 0 ? void 0 : options.operator) && lodash.isNil(options === null || options === void 0 ? void 0 : options.value))
|
|
1573
1577
|
return Object.keys(options).reduce(function (queryReferenceWithWhere, key) { return _this.buildWhereSentence(queryReferenceWithWhere, fieldName + "." + key, options[key]); }, queryReference);
|
|
1574
1578
|
return queryReference.where(fieldName.toString(), (options === null || options === void 0 ? void 0 : options.operator) || '==', (options === null || options === void 0 ? void 0 : options.value) || options);
|