Solved

bulk mutation operation Retrieve the results return null

johnLoveApp
Visitor
3 0 3

I am ready to do batch update according to the instructions

https://shopify.dev/api/usage/bulk-operations/imports#retrieve-the-results

No problem up front. To the query result node returns null

webhook return

 

 

 

{"admin_graphql_api_id":"gid:\/\/shopify\/BulkOperation\/628413137063","completed_at":"2021-11-03T10:50:38-04:00","created_at":"2021-11-03T10:50:35-04:00","error_code":null,"status":"completed","type":"mutation"}

 

 

 

 

i post get the result

 

 

 

query {
  node(id: "gid://shopify/BulkOperation/628413137063") {
    ... on BulkOperation {
      url
      partialDataUrl
    }
  }
}

 

 

 

 

But the result keeps returning null

 

 

 

array(2) {
  ["data"]=>
  array(1) {
    ["node"]=>
    NULL
  }
  ["extensions"]=>
  array(1) {
    ["cost"]=>
    array(3) {
      ["requestedQueryCost"]=>
      int(1)
      ["actualQueryCost"]=>
      int(1)
      ["throttleStatus"]=>
      array(3) {
        ["maximumAvailable"]=>
        float(1000)
        ["currentlyAvailable"]=>
        int(999)
        ["restoreRate"]=>
        float(50)
      }
    }
  }
}

 

 

 

 

myshopify.com/admin/api/2021-10/graphql.json

 

Can someone help me see why?

Accepted Solution (1)

Schmidtc63
Shopify Partner
79 11 21

This is an accepted solution.

Ok. I figured this out.

 

If you use the shopify-graphiql-app to create your webhook, the webhook is created under different credentials than the other webhooks for your store/custom app. 
You have to create the webhook through GraphQL using the credentials of your other webhooks, which most likely means just submitting the webhook creation query as you do your other GraphQL queries.


View solution in original post

Replies 3 (3)

johnLoveApp
Visitor
3 0 3

Does everyone encounter this problem?

Schmidtc63
Shopify Partner
79 11 21

This is an accepted solution.

Ok. I figured this out.

 

If you use the shopify-graphiql-app to create your webhook, the webhook is created under different credentials than the other webhooks for your store/custom app. 
You have to create the webhook through GraphQL using the credentials of your other webhooks, which most likely means just submitting the webhook creation query as you do your other GraphQL queries.


makasanas
Shopify Partner
22 0 3

@johnLoveApp 

i am facing same problem did you figure out out what is problem here? Here is my same question. 
https://community.shopify.com/c/graphql-basics-and/offline-graphqlclient-returning-null-bulkoperatio...