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