@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.
@@ -2654,7 +2654,10 @@ class ProductProjectionRepository extends AbstractResourceRepository {
2654
2654
  }
2655
2655
 
2656
2656
  search(projectKey, query) {
2657
- const wherePredicate = parseFilterExpression(query.filter);
2657
+ var _query$filterQuery;
2658
+
2659
+ const filter = (_query$filterQuery = query['filter.query']) != null ? _query$filterQuery : query.filter;
2660
+ const wherePredicate = filter ? parseFilterExpression(filter) : undefined;
2658
2661
 
2659
2662
  const results = this._storage.query(projectKey, this.getTypeId(), {
2660
2663
  where: wherePredicate