image URL instead of gid on metafeild via admin api

Hey,

Wondering if there is a way to return the image URL instead of the gid on a metafield via admin API?

1 Like

Hmm can you flesh this out a little further? This is a file_reference metafield? What’s the query that you’re currently doing?

Hey

Its via REST API metafields object. We are calling the metafield on a product and are only getting the GID whereas we want to URL.

1 Like

Hmm may be limited in REST - possible to use graphql?

yeah maybe, I might try on gQL and see if that solves it. Im just more comfortable on the rest side.

1 Like

Yeah I hear that - it can be so much more complicated a lot of the time. I spend a good amount of time in graphql so if you’d like any help feel free to reach out.

@Kalen_Jordan

Thanks, I think I need to make the dive into it with the deprecation of admin API coming up.

more and more features are in it.

1 Like