Run a Shopify Admin GraphQL bulk operation (bulkOperationRunQuery) and parse the resulting JSONL output

domain: shopify.dev · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Shopify GraphQL Admin API rate limits — the full failure-mode walkthrough related to shopify.dev, checked against official docs, with linked verified routes.

Steps

  1. Call the bulkOperationRunQuery Admin GraphQL mutation with a query string that wraps your data query in a bulkOperation context; the query must reference only connection fields and use the implicit __parent_id mechanism for nested resources
  2. Poll the currentBulkOperation query to check status (CREATED, RUNNING, COMPLETED, FAILED, CANCELED); poll on a reasonable interval (e.g., every 5 seconds for small operations, longer for large ones)
  3. When status is COMPLETED, retrieve the url field from currentBulkOperation — this is a short-lived signed URL to a JSONL file on Shopify's CDN; download it promptly before the URL expires
  4. Parse the JSONL file line by line; each line is a JSON object representing one node from the query; nested resources include a __parentId field linking them to their parent node — reassemble the tree if needed
  5. Handle partial failures: if status is FAILED check the errorCode and partialDataUrl; partial data may still be usable depending on the error
  6. For bulk mutations use bulkOperationRunMutation with a JSONL input file uploaded via stagedUploadsCreate; the flow is upload JSONL → get staged upload URL → POST file → call bulkOperationRunMutation with the staged upload URL

Known gotchas

Related routes

Run a Shopify GraphQL Admin API bulk operation to export all products for large catalog processing
shopify.com · 6 steps · unrated
export all products or orders from shopify using admin graphql bulk operations
shopify.com · 6 steps · unrated
Run a Shopify Admin GraphQL stagedUploadsCreate + bulkOperationRunMutation pipeline to bulk-import metafield values for thousands of products
shopify.dev · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans