Required info missing from bulk operation responses

Solved
sslotsky-gtsb
New Member
2 0 0

Greetings,

According to the documentation, when I initiate a bulkOperationRunQuery, the response should include the query that I supplied to it:

 

query (String!)

GraphQL query document specified in bulkOperationRunQuery.

I am using API version 2021-01, and am finding that there is no query field on the response at all. Is this a bug? A documentation error?  Here's an example response:

 

 

info {
  id: 'gid://shopify/BulkOperation/306641731782',
  status: 'COMPLETED',
  errorCode: null,
  createdAt: '2021-03-08T17:11:21Z',
  completedAt: '2021-03-08T17:11:22Z',
  objectCount: '33',
  fileSize: '4939',
  url: 'https://storage.googleapis.com/shopify-tiers-assets-prod-us-east1/gbny1uqfpql88ovc8m9tvzbazlmk?GoogleAccessId=assets-us-prod%40shopify-tiers.iam.gservicea
ccount.com&Expires=1615828282&Signature=hAxqjd0NTfMDvJ2QMhwdon0v7OjILooLZo5MbxgR7V8hRx06GlwP52pf8jMEVAzYzF2WgHM5CC7SQHASbo0qTeuZTIZ5SbnhIya3tsZ%2FrlQm2U5WaQp0%2FF
KQVU3OrXPlk57amndTKglBQ25SGRP5iRn5I%2FaSShKJijWZg7b1RrcVF6c5qktlAobG%2Blvo9y7SrTD%2B%2Ba6MievP8uUGevjj1%2BnbKAQM5rnNiVpxtR2SUHyrXSApOBrrwKXMecw4VxArIVv9hp%2FXxK3C
ZRoTMldudw4QLa0MnKUHc2kGo4rMhc0l4%2FNAojIVpN2f0O3xxXcTgPla9czBVcJ3uD%2BjNlbGeA%3D%3D&response-content-disposition=attachment%3B+filename%3D%22bulk-306641731782.js
onl%22%3B+filename%2A%3DUTF-8%27%27bulk-306641731782.jsonl&response-content-type=application%2Fjsonl',
  partialDataUrl: null
}

 

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
258 32 45

This is an accepted solution.

Hey @sslotsky-gtsb 

I was able to add it without issue to my query:

{
  currentBulkOperation {
    id
    status
    url
    query
  }
}

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

sslotsky-gtsb
New Member
2 0 0

@Kevin_A thanks, I was adding the field to the wrong query! 🤦

0 Likes