Replies: 2 comments 3 replies
-
Wait a minute, aren't those modules linked? It is the main idea behind all the workflow!!! |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can use the await query.graph({
entity: "product",
fields: ["variants.inventory.*"],
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Medusa V1 you can use ProductVariantInventoryService to get inventory_item_id from product variant_id. Like send product variant_id -> receive inventory_item_id associated with this product variant.
In Medusa v2 I can't find any methods to get inventory_item_id based on variant_id or product_id. It seems that such methods just doesn't exist.
How do I associate variant_id or product_id with inventory module and stock module? There are no methods to get any data about inventory or stock in Product Module.
Beta Was this translation helpful? Give feedback.
All reactions