|
|
@@ -26,8 +26,10 @@ export const facetValueCollectionFilter = new CollectionFilter({
|
|
|
const ids = args.facetValueIds;
|
|
|
|
|
|
if (ids.length) {
|
|
|
- const idsName = `ids_${ids.join('_')}`;
|
|
|
- const countName = `count_${ids.join('_')}`;
|
|
|
+ // uuid IDs can include `-` chars, which we cannot use in a TypeORM key name.
|
|
|
+ const safeIdsConcat = ids.join('_').replace(/-/g, '_');
|
|
|
+ const idsName = `ids_${safeIdsConcat}`;
|
|
|
+ const countName = `count_${safeIdsConcat}`;
|
|
|
const productFacetValues = qb.connection
|
|
|
.createQueryBuilder(ProductVariant, 'product_variant')
|
|
|
.select('product_variant.id', 'variant_id')
|