skip to Main Content

How to use variables in GraphQL mutation for bulk adjust inventory? – Shopify

I trying to bulk adjust inventory item of my Shopify product variants as explained in this article: https://www.shopify.com/partners/blog/multi-location_and_graphql I tried hardcoding the variants ID in the query and it worked great : <<-'GRAPHQL' mutation { inventoryBulkAdjustQuantityAtLocation( locationId: "gid://shopify/Location/5537988719", inventoryItemAdjustments: […

VIEW QUESTION

Shopify graphql customerCreate

Using the storefront api with graphql-yoga server. Got the playground open to test queries and mutations. According to the documentation this should work for creating a customer mutation { customerCreate( input: { firstName: "dave", lastName: "smith", email: "[email protected]", password: "HiZqFuDvDdQ7",…

VIEW QUESTION

Shopify graphQL query

I can't see how to format this graphene query for shopify. I need to replicate this curl query with graphene in Django: curl -X POST "https://<shop>.myshopify.com/api/graphql" -H "Content-Type: application/graphql" -H "X-Shopify-Storefront-Access-Token: <storefront-access-token>" -d ' { shop { collections(first: 5) {…

VIEW QUESTION
Back To Top
Search