diff --git a/.changeset/lemon-poems-join.md b/.changeset/lemon-poems-join.md new file mode 100644 index 0000000000..80f13ad53e --- /dev/null +++ b/.changeset/lemon-poems-join.md @@ -0,0 +1,5 @@ +--- +"@medusajs/medusa": patch +--- + +fix(medusa): update default admin query with product categories diff --git a/packages/medusa/src/api/routes/admin/products/index.ts b/packages/medusa/src/api/routes/admin/products/index.ts index 68391429b6..1645a74766 100644 --- a/packages/medusa/src/api/routes/admin/products/index.ts +++ b/packages/medusa/src/api/routes/admin/products/index.ts @@ -159,6 +159,18 @@ export const defaultAdminProductRemoteQueryObject = { fields: ["title", "handle", "id", "created_at", "updated_at", "deleted_at"], }, + categories: { + fields: [ + "id", + "name", + "description", + "handle", + "is_active", + "is_internal", + "parent_category_id", + ], + }, + options: { fields: [ "id", @@ -503,4 +515,3 @@ export * from "./set-metadata" export * from "./update-option" export * from "./update-product" export * from "./update-variant" -