We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
medusa 2.4.0
20
16
Mac
No response
Why does this query throw an error:
const existingProducts = await medusa.admin.product.list({ handle: [...enrichedProducts.map((product) => product.handle)], });
Error:
error: Invalid request: Expected type: 'string' for field 'handle', got: 'array' MedusaError: Invalid request: Expected type: 'string' for field 'handle', got: 'array'
In the docs it clearly states either string or array of handles?! https://docs.medusajs.com/api/admin#products_getproducts
Return array of products filtered by the handle filter array
Error
na
The text was updated successfully, but these errors were encountered:
Hey @fxmb, this was merged this week https://github.com/medusajs/medusa/pull/11472/files
Should be available in the next release. You can use the "preview" tag to access it now.
Sorry, something went wrong.
No branches or pull requests
Package.json file
medusa 2.4.0
Node.js version
20
Database and its version
16
Operating system name and version
Mac
Browser name
No response
What happended?
Why does this query throw an error:
Error:
In the docs it clearly states either string or array of handles?!
https://docs.medusajs.com/api/admin#products_getproducts
Expected behavior
Return array of products filtered by the handle filter array
Actual behavior
Error
Link to reproduction repo
na
The text was updated successfully, but these errors were encountered: