Closed durdenx closed 1 year ago
Thanks for reporting this. We will attend to it in the near future 💪
any news on this?
@edihasaj Solved in #2815. Did you test it yet?
@olivermrbl I'm looking for the solution where I can sort by multiple columns
For example:
Select * from products order by discounts, created_at desc
in query params
store/products?size=XL&order[]=discounts&order[]=-created_at
It will helpful if guide how to solve this problem
I also looked into extending the StoreGetProductsPaginationParams
Bug report
Describe the bug
The order option doesn't exist on the medusa js client for some endpoints (products.list in this case) :
Could you regenerate the client or something?
System information
Medusa version (including plugins):
Node.js version: 18.12.1 Database: postgres 13.8 Operating system: MacOS 12.6.1 Browser (if relevant): 107.0.5304.110
Steps to reproduce the behavior
Use the medusaClient with the
order
parameter.Expected behavior
The
order
parameter is available in all list endpoints (especially theadmin.products.list
one) of the medusajs client and the client returns a sorted result with the provided parameter.Bonus!
I don't know if this is intended, but the client wants you to provide all the list type fields when updating:
Context
CORE-901