-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
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
type issue in products.list productQuery type #95
Comments
@vettloffah I see that you are facing a type mismatch. We have not yet fully developed the type system, as you have already noticed. Try wrapping your query condition in where: const productResponse = await swell.products.list({
where: {
id: { $in: productIds } // productIds is an array of IDs
}
}) |
Hi @awwit as I said in the original post here, the "where" flag returns no results, even though it should. That is why I created this issue. |
Hi @vettloffah I checked that the It looks like there is no way to query inactive products via |
This is shown as a type error, however it is a valid API call:
And trying to do this same thing with the "where" flag actually doesn't properly return any products.
The text was updated successfully, but these errors were encountered: