Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Storefront API does not provide image url

Storefront API does not provide image url

brianh20
Shopify Partner
10 0 1

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)