Skip to content

Commit

Permalink
fix(medusa): Update default relations in admin for list-product from …
Browse files Browse the repository at this point in the history
…module
  • Loading branch information
pKorsholm authored Nov 24, 2023
1 parent f2fd51f commit 712c449
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-poems-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---

fix(medusa): update default admin query with product categories
13 changes: 12 additions & 1 deletion packages/medusa/src/api/routes/admin/products/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -503,4 +515,3 @@ export * from "./set-metadata"
export * from "./update-option"
export * from "./update-product"
export * from "./update-variant"

0 comments on commit 712c449

Please sign in to comment.