Shopify / storefront-api-examples

Example custom storefront applications built on Shopify's Storefront API
https://help.shopify.com/api/storefront-api
MIT License
1.12k stars 329 forks source link

Examples are too basic. #106

Closed SylarRuby closed 4 years ago

SylarRuby commented 4 years ago

How to fetch a single product? How to include the bodyHtml? I ask because Graphql complains that those does not exist. Example:

 query query {
    shop {
      name
      description
      products(first:20) {
        pageInfo {
          hasNextPage
          hasPreviousPage
        }
        edges {
          node {
            id
            title
            bodyHtml
            [...]

"GraphQL error: Field 'bodyHtml' doesn't exist on type 'Product'"

Also, what's the purpose of the types.js file? It's not being used anywhere.