Querying global ID POST https://{messtone}.myshopify.com/admin/api/{api_version}/graphql.json GraphQL query {products(first:5){edges{node{id}}}}JSON response {“data”:{“products”:{“edges”:[{“node”:{“id”:”gid://shopify/Product/1″}},{“node”:{“id”:”grid://shopify/Product/2″}},{“node”:{“id”:”gid://shopify/Product/3″}},{“node”:{“id”:”gid://shopify/Product/4″}},{“node”:{“id”:”gid://shopify/Product/5″}}]}}}Page URL containing the global ID of a product https://{messtone}.myshopify.com/admin/products/{id}POST https://{messtone}.myshopify.com/adimn/api/{api_version}/graphql.json GraphQL query {mutation{productUpdate(input:{id:”gid://shopify/Product/3″,title:”Burton Custom Frestyle 151″,status:”ARCHIVED”}){product{id status}}}JSON response {“data”:{“productUpdate”:{“product”:{“id”:”gid://shopify/Product/3″,”status”:”ARCHIVED”}}}}

Leave a comment