Query Response Missing Nodes

I’m building an integration and when running the query, the edge nodes aren’t returning any data even though I have the specified fields. When I run the query through AltairQL it runs fine, but through something like Postman or cURL it gives this incomplete response:

{"query":"query($fulfillmentStatus:String $shopName:String $recordLimit:Int=5 $itemLimit:Int=10 $cursor:String $sort:String) {\n  orders(fulfillment_status:$fulfillmentStatus shop_name:$shopName) {\n    request_id\n    complexity\n    data(first:$recordLimit after:$cursor sort:$sort) {\n      pageInfo {\n        hasNextPage\n        hasPreviousPage\n        startCursor\n        endCursor\n      }\n      edges {\n        node {\n          id\n          legacy_id\n          shop_name\n          order_date\n          order_number\n          required_ship_date\n          total_price\n          total_discounts\n          shipping_lines {\n            title\n            carrier\n            method\n            price\n          }\n          shipping_address {\n            first_name\n            last_name\n            company\n            address1\n            address2\n            city\n            state\n            state_code\n            zip\n            country\n            country_code\n            email\n            phone\n          }\n          line_items(first:$itemLimit) {\n            pageInfo {\n              hasNextPage\n              hasPreviousPage\n              startCursor\n              endCursor\n            }\n            edges {\n              node {\n                id\n                legacy_id\n                quantity\n                subtotal\n                sku\n              }\n              cursor\n            }\n          }\n        }\n        cursor\n      }\n    }\n  }  \n}","variables":{"fulfillmentStatus":"pending","shopName":"my-shop.myshopify.com","recordLimit":30,"cursor":"","sort":"order_date","itemLimit":25}}

The response I get is:

{"data":{"orders":{"request_id":"5ec88a9407512748531cdc83","complexity":751,"data":{"pageInfo":{"hasNextPage":false,"hasPreviousPage":false,"startCursor":null,"endCursor":null},"edges":[]}}}}

This only occurs while running through a non-GraphQL client (e.g. Postman, cURL, etc.) but when this query is run via a GraphQL client (e.g. Altair GraphQL) it works perfectly fine.

The extra headers I’m sending (outside of the standard request headers) are:

Authorization: Bearer <token>
Content-Type: application/json

Why is my response missing the individual edge nodes?

Figured it out. The filters I was using were preventing any results from showing. Once I adjusted the filters correctly, the results started showing.

1 Like