feat(store): add id filtering to store collections endpoint (#13555)
* feat(store): add id filtering to store collections endpoint * 🐛 Fix circular type reference * ✨ Add changeset
This commit is contained in:
1 parent
e074050e97
commit
513b352da3
5 files changed
+14
-7
No files matched your search
@@ -10,7 +10,7 @@ import {
|
||||
} from "@medusajs/framework/utils"
|
||||
|
||||
export const GET = async (
|
||||
req: AuthenticatedMedusaRequest<HttpTypes.StoreCollectionFilters>,
|
||||
req: AuthenticatedMedusaRequest<HttpTypes.StoreCollectionListParams>,
|
||||
res: MedusaResponse<HttpTypes.StoreCollectionListResponse>
|
||||
) => {
|
||||
const remoteQuery = req.scope.resolve(ContainerRegistrationKeys.REMOTE_QUERY)
|
||||
|
||||
@@ -10,6 +10,7 @@ export const StoreGetCollectionParams = createSelectParams()
|
||||
|
||||
export const StoreGetCollectionsParamsFields = 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