fix(medusa): Update default relations in admin for list-product from module

This commit is contained in:
Philip Korsholm
2023-11-24 12:50:42 +00:00
committed by GitHub
parent f2fd51f969
commit 712c4496ce
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): update default admin query with product categories

View File

@@ -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"