You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
medusaClient.product.list({ tags: ['shirts'] }) returns an empty list when the product tags exist and are assigned to active products. The documentaion states that filtering by tag values will retrieve products, however this does not work. It DOES work if you use the tag ids instead of the tag values.
DoubleOTheven
changed the title
JS Client returns empty list when searching by Tags
JS Client returns empty list when searching by Tag Values
May 18, 2024
Bug report
Describe the bug
medusaClient.product.list({ tags: ['shirts'] })
returns an empty list when the product tags exist and are assigned to active products. The documentaion states that filtering by tagvalue
s will retrieve products, however this does not work. It DOES work if you use the tagid
s instead of the tagvalue
s.System information
Medusa version (including plugins): "@medusajs/product": "1.20.6"
&
"@medusajs/medusa-js": "^6.1.8"`Node.js version: 20
Database: PG
Operating system: OSX
Browser (if relevant): --
Steps to reproduce the behavior
client.products.list({ tags: ['your-tag'] });
-> Returns an EMPTY LISTclient.products.list()
; -> Returns products with the tags present in responseExpected behavior
Filtering by tag
value
should return products that have those tags. Passing in tagid
s should not.The text was updated successfully, but these errors were encountered: