GraphQL query polling returns null node

Solved

GraphQL query polling returns null node

annapurna
Tourist
12 0 4

Why does GraphQL Bulk Query return the following response for an operation?

 

 

 

{
            "data": {
                "node": null
            },
            "extensions": {
                "cost": {
                    "requestedQueryCost": 1,
                    "actualQueryCost": 1,
                    "throttleStatus": {
                        "maximumAvailable": 2000,
                        "currentlyAvailable": 1999,
                        "restoreRate": 100
                    }
                }
            }
        }

 

 

 Node is `null` no matter how many times it is tried.

Accepted Solution (1)

Gregarican
Shopify Partner
1033 86 287

This is an accepted solution.

It's difficult to ascertain without seeing the GQL request you are making. Can you provide that?

View solution in original post

Replies 3 (3)

Gregarican
Shopify Partner
1033 86 287

This is an accepted solution.

It's difficult to ascertain without seeing the GQL request you are making. Can you provide that?

Chrisphine
Shopify Partner
14 0 0

I have the same issue. Some product Ids are returning a value but others are not.

Chrisphine

Chrisphine
Shopify Partner
14 0 0

Hello there, my code had the same issue. I realized I was using the parameter "id" which is the item id or the variant id and not the "product_id". Check for the product_id specifically.

Chrisphine