title: Can we get product by SKU using Shopify Storefront GraphQL API(NOT ADMIN)?
body: <p>I am stuck on this for more than two days now. I couldn't able to find any resources on this. There are many solutions by using ADMIN API but I don't have Admin access. Problem I am trying to solve is: I have only access to Product's SKU. I need to fetch all other information(title, price, description, featuredImage etc...) from Shopify using Storefront API. Here's the function to get product:</p>
  <pre><code>function loadProducts(items) {
      let products = [];
  
      items.forEach((item) =&gt; {
          const sku = item.id;
          if (sku !== &quot;undefined&quot;) {
              /* TODO: Need to figure out this query*/
              const query = `{
           products(first: 1, query: &quot;sku:&lt;sku&gt;&quot;) {
      edges {
        node {
          title
          id
          description
        }
      }
    }
         }`;
  
              const STOREFRONT_ACCESS_TOKEN = 'xxxxxxxxxxxxxxx';
              const GRAPHQL_URL = 'https://&lt;my-store&gt;.myshopify.com/api/2021-01/graphql.json';
              const GRAPHQL_BODY = {
  
                  'method': 'POST',
                  'headers': {
                      'X-Shopify-Storefront-Access-Token': STOREFRONT_ACCESS_TOKEN,
                      'Content-Type': 'application/json',
                  },
                  'body': JSON.stringify({ query })
  
              }
              products.push(getData(GRAPHQL_URL, GRAPHQL_BODY));
          }
      });
      return Promise.all(products);
  }
  function getData(url, body) {
      return new Promise((resolve, reject) =&gt; {
          fetch(url, body)
              .then(res =&gt; res.json())
              .then(data =&gt; {
                  resolve(data);
              })
              .catch((error) =&gt; {
                  reject(error);
              });
      });
  }
  </code></pre>
  <p>I'd really appreciate if you can redirect me to the right direction. PLEASE NOT: I am only suppose to use Storefront API, not the ADMIN API. Thank you!</p>