Up until today I have been querying the Shopify GraphQL API with “originalSrc” in order to get product image sources. Now I see “originalSrc” is deprecated and that I should use “src” instead. My question is: how would this query with “src” look?
I have attempted to replace “originalSrc” with “src”, which just returns a syntax error and I have not been able to find the solution anywhere online.
Here is my current (and deprecated) request
{
product(id: "gid://shopify/Product/6786957082804") {
id
images(first:10) {
pageInfo {
hasNextPage
hasPreviousPage
}
edges {
cursor
node {
originalSrc
id
}
}
}
}
}
Thanks in advance!