fix(medusa): Allow filtering by handle and title as arrays (#11472)
**What** - Allows filtering products in the Store API with an array value for both `handle` and `title`. RESOLVES SUP-893
This commit is contained in:
@@ -9,8 +9,8 @@ export const ProductStatusEnum = z.nativeEnum(ProductStatus)
|
||||
export const StoreGetProductParamsDirectFields = z.object({
|
||||
q: z.string().optional(),
|
||||
id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
title: z.string().optional(),
|
||||
handle: z.string().optional(),
|
||||
title: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
handle: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
is_giftcard: booleanString().optional(),
|
||||
category_id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
external_id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
|
||||
Reference in New Issue
Block a user