@infrab4a/connect 0.9.10 → 0.9.11-beta.0

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.
@@ -1256,12 +1256,14 @@
1256
1256
  if (_this.isSubCollection(_this) && fieldName === _this.parentIdField)
1257
1257
  return queryReference;
1258
1258
  if ((options === null || options === void 0 ? void 0 : options.operator) === exports.Where.LIKE) {
1259
+ if (Array.isArray(options === null || options === void 0 ? void 0 : options.value))
1260
+ return queryReference.where(fieldName.toString(), 'array-contains-any', options.value);
1259
1261
  queryReference = queryReference.where(fieldName.toString(), '>=', options.value);
1260
1262
  queryReference = queryReference.where(fieldName.toString(), '<=', options.value + "~");
1261
1263
  return queryReference;
1262
1264
  }
1263
1265
  if ((options === null || options === void 0 ? void 0 : options.operator) === exports.Where.IN && Array.isArray(options === null || options === void 0 ? void 0 : options.value))
1264
- return queryReference.where(fieldName.toString(), 'array-contains-any', options.value);
1266
+ return queryReference.where(fieldName.toString(), 'array-contains', options.value);
1265
1267
  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))
1266
1268
  return Object.keys(options).reduce(function (queryReferenceWithWhere, key) { return _this.buildWhereSentence(queryReferenceWithWhere, fieldName + "." + key, options[key]); }, queryReference);
1267
1269
  return queryReference.where(fieldName.toString(), (options === null || options === void 0 ? void 0 : options.operator) || '==', (options === null || options === void 0 ? void 0 : options.value) || options);