feat(medusa): allow filtering by id for collections (#13495)
Same as this [PR](https://github.com/medusajs/medusa/pull/13174), but would want to get this merged (no response from contributor) since I am sure it is a quick and nice addition
This commit is contained in:
5
.changeset/thick-maps-leave.md
Normal file
5
.changeset/thick-maps-leave.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
feat(medusa): allow filtering by id for collections
|
||||
@@ -11,6 +11,7 @@ export const AdminGetCollectionParams = createSelectParams()
|
||||
|
||||
export const AdminGetCollectionsParamsFields = z.object({
|
||||
q: z.string().optional(),
|
||||
id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
title: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
handle: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
created_at: createOperatorMap().optional(),
|
||||
|
||||
Reference in New Issue
Block a user