Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Metafield Image GraphQL

Metafield Image GraphQL

juustanotherdev
Tourist
8 1 2

Hello everyone,

 

I have some problems understanding how it is possible to receive an image object of the StoreFront API in the Metafields.

 

If I drag images in the Metafields I get a list of ids as a result:

 

["gid://shopify/MediaImage/00000000000000"]

 

However in Collections and Products for images I receive an object with id, originalSrc and altText.

 

So is there any particular way to access originalSrc via id?

 

Hopefully anyone can help here.

 

LG

 

Replies 0 (0)