@labdigital/commercetools-mock 0.6.4 → 0.6.5

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.
@@ -2916,13 +2916,15 @@ class ProductProjectionRepository extends AbstractResourceRepository {
2916
2916
  search(context, query) {
2917
2917
  var _query$filterQuery;
2918
2918
 
2919
+ const expand = query.expand ? query.expand : undefined;
2919
2920
  const filter = (_query$filterQuery = query['filter.query']) != null ? _query$filterQuery : query.filter;
2920
2921
  const wherePredicate = filter ? parseFilterExpression(filter) : undefined;
2921
2922
 
2922
2923
  const results = this._storage.query(context.projectKey, this.getTypeId(), {
2923
2924
  where: wherePredicate,
2924
2925
  offset: query.offset ? Number(query.offset) : undefined,
2925
- limit: query.limit ? Number(query.limit) : undefined
2926
+ limit: query.limit ? Number(query.limit) : undefined,
2927
+ expand
2926
2928
  }); //TODO: this is a partial implementation, but I don't really have the time to implement an actual search API right now
2927
2929
 
2928
2930