query($filter: String!) {
products(first: 1, query: $filter) {
edges {
node {
id
title
handle
}
}
}
}
{
"filter": "sku:1111111111"
}
A developer is attempting to retrieve product information by SKU using JavaScript and the Storefront API but cannot find a method to do so.
Key Points:
query filter parameter (e.g., "filter": "sku:1111111111"), providing a code snippet that queries products by SKUCurrent Status:
The discussion remains unresolved with conflicting information about whether SKU-based queries are supported in the Storefront API. The feasibility of the proposed solution is questioned.
query($filter: String!) {
products(first: 1, query: $filter) {
edges {
node {
id
title
handle
}
}
}
}
{
"filter": "sku:1111111111"
}