I tried to get stock for a product variant using the js-sdk, but the field inventory_quantity of variant object is never returned (even if the manage_inventory is set to true according to documentation)
None of sdk methods return it, whether it's fetch or list product
System information
Medusa version (including plugins): 2.0.1
Node.js version: 20
Database: PostgreSQL
Operating system: linux
Steps to reproduce the behavior
Create a product and a variant
Add inventory stock for it
Try to fetch the product and variants from js-sdk
See that field inventory_quantity isn't returned
Expected behavior
inventory_quantity should be returned inside the variant object
Bug report
Describe the bug
I tried to get stock for a product variant using the js-sdk, but the field
inventory_quantity
of variant object is never returned (even if the manage_inventory is set to true according to documentation)None of sdk methods return it, whether it's fetch or list product
System information
Medusa version (including plugins): 2.0.1 Node.js version: 20 Database: PostgreSQL Operating system: linux
Steps to reproduce the behavior
Expected behavior
inventory_quantity
should be returned inside the variant objectCode snippets