Skip to content
Discussion options

You must be logged in to vote

Please see https://community.shopify.com/c/Shopify-APIs-SDKs/Storefront-API-variantId-different-than-Rest-API-variantId/m-p/607819/highlight/true#M41291

You'll need to convert the ID:

const storefrontId = "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0LzEwMDc5Nzg1MTAw";
const adminGraphqlId = atob(storefrontId);
console.log(adminGraphqlId) // prints "gid://shopify/Product/10079785100"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@code-mat
Comment options

Answer selected by code-mat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #29481 on February 15, 2021 09:08.