Re: GraphQL - Product image url

Solved

GraphQL - Product image url

QuentinFAV
Shopify Partner
7 1 2

Hi all,

 

I'm trying to get the products images using GraphQL via Storefront API.src and originalSrc fields are deprecated so I should use url but I cannot see this field anywhere in the documentation.

 

Capture d’écran 2021-12-30 à 15.27.55.png

 

What should I do? Thanks!

Quentin | Lead Developer @ FAV Solution
Accepted Solution (1)

QuentinFAV
Shopify Partner
7 1 2

This is an accepted solution.

It seems the doc has been updated

Quentin | Lead Developer @ FAV Solution

View solution in original post

Replies 5 (5)

QuentinFAV
Shopify Partner
7 1 2

This is an accepted solution.

It seems the doc has been updated

Quentin | Lead Developer @ FAV Solution
JoseDias
Shopify Partner
2 0 1

Hello,

 

How about the GraphQL Admin API? It seems that the "url" field is not available in the Image object schema yet for the GraphQL Admin API.

 

Thank you

GarethM
Shopify Partner
1 0 0

Hi perhaps I am missing something but even though the doc has been updated, the api has not, seemingly. I am new to Shopify and am testing out the api but I came up with this issue as well.

GarethM_0-1664264198513.png

ok, fine then I when I try the url, as suggested, I get

GarethM_1-1664264270872.png

and it returns an error

GarethM_2-1664264326819.png

But the src, does not error, despite the documentation

GarethM_3-1664264430021.png

Which is both mysterious to me and as this seems to be happening often with the documentation at Shopify, pretty annoying for me. But I stand to be happily corrected by someone.

 

QuentinFAV
Shopify Partner
7 1 2

Hey @GarethM ,

 

Which API are you using (Admin or Storefront) ? And which version?

 

Capture d’écran 2022-09-27 à 11.13.24.png

Quentin | Lead Developer @ FAV Solution

BSoul323
Visitor
1 0 0

I were looking to restoration this on and rancid for around 2 hours, the propose is very a whole lot liked. Could I also ask one closing query, how can i remove the work Description from every of the product pages, it just does appearance appropriate imo for the page.