@labdigital/commercetools-mock 0.5.15 → 0.5.16

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.
@@ -2661,7 +2661,10 @@ class ProductProjectionRepository extends AbstractResourceRepository {
2661
2661
  }
2662
2662
 
2663
2663
  search(projectKey, query) {
2664
- const wherePredicate = parseFilterExpression(query.filter);
2664
+ var _query$filterQuery;
2665
+
2666
+ const filter = (_query$filterQuery = query['filter.query']) != null ? _query$filterQuery : query.filter;
2667
+ const wherePredicate = filter ? parseFilterExpression(filter) : undefined;
2665
2668
 
2666
2669
  const results = this._storage.query(projectKey, this.getTypeId(), {
2667
2670
  where: wherePredicate