Skip to content

Does Swell Frontend Api support batch fetching. #447

Discussion options

You must be logged in to vote

You can fetch multiple products by ID at once, like this:

await swell.products.list({
  id: { $in: [productId1, productId2, productId3, ...]},
  limit: 10 // should be at least the number of IDs above or it will paginate
})

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Daniel-Alamezie
Comment options

@ericingram
Comment options

Answer selected by logeshswell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
2 participants