Skip to content

type issue in products.list productQuery type #95

@vettloffah

Description

@vettloffah

This is shown as a type error, however it is a valid API call:

// returns matching product results
const productResponse = await swell.products.list({
	id: { $in: productIds } // productIds is an array of IDs
})

image

And trying to do this same thing with the "where" flag actually doesn't properly return any products.

// this doesn't work even though it seems like it should (returns no results)
const productResponse = await swell.products.list({
	where: { id: { $in: productIds } }
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions