New Shopify Certification now available: Liquid Storefronts for Theme Developers

Storefront API does not provide image url

brianh20
Shopify Partner
10 0 0

We are trying to display images from the products on Shopify by using the Storefront GraphQL API


This doc (https://shopify.dev/api/storefront/2022-07/queries/product) which describes the Product object, claims the content has the Image object (described here: https://shopify.dev/api/storefront/2022-07/objects/Image) and specifies that the URL property is present. However, when trying to perform a graphQL query requesting the url, this is the error received: "message": "Field 'url' doesn't exist on type 'Image'",

 


```
query getCollectionById($id: ID!) {
  collection(id: $id) {
    title
    products(first: 250) {

      edges {
        node{
           title
             images(first: 10) {
               edges{
                  node {
                    id
                    url
...}}}}}}}}
```


The expected behavior is that we can request the url as per what the docs specify.

Replies 0 (0)