Hi,
I’ve been using the following to pull back individual product data from the Storefront API by ID:
query getProductById ($id: ID!) {
product(id: $id) {
id,
title,
requiresSellingPlan
}
}
To avoid looping through multiple products and making individual requests for each ID, I’m looking for a way to query by multiple product IDs so that I can return multiple products via one request to the API. Does anyone have a solution for this please?
I should note that the specific requirements I have require this to be via product ID, so filtering a collection will not work in this instance. The page in question will show to a customer details of all their active subscriptions.
Thanks in advance