I am trying to get the image source by using metafields value but it will be given me "gid://shopify/MediaImage/24161764376760" that type media Image id,
With the help of this in which query I have to use to get media src .
Starting next Friday (Oct 1) with the release of the 2021-10 API version you’ll be able to query a new reference field on the Metafield object. You can see it in the dev docs for the 2021-10 version here:
I have checked dev docs but i am not found any query about the media image to get source . I know with the help of liquid object we will achieve image src. But i want to get the image src by using any Api’s or Graphql for metafields.
For those like myself who works with new 2.0 theme but doesn’t work with API, headless, Graphql etc; but which landed on this forum, here is the line to get your Image file URL from metafield file reference
I don’t know yet if we can also manage image source size like this.
Hi. Thanks a lot. I have been looking for this for a long time. Adding " | file_url " really helped.
Can you also share what needs to be done to access metafield whose content type is page.
is there any way to achieve similiar thing with `list.file_refrence’ metafield type?
I would like to be able to resolve a whole list of files at once to get contents for a slider.
Maybe the answer is obvious, but as a noob in gQL I can’t find it.
Any help much appreciated!
I did eventually find this solution, however at the time using references returned null until one day suddenly it started returning the correct data, my guess is an api-level error, but it’s working fine now