Unable to return data using orders query if order is >365 days old


I have a workflow that queries ShipHero API for a previous order using the orders query by specifying the order_number.

When I make this call:

query {
	orders(order_number: "02550230") {
		data (first: 1) {	
				node {

No data is returned if the order is >365 days old. However, if I use the order query and supply the legacy_id, then ShipHero API is able to return the data

Is this expected behavior? I didn’t see this limitation in the schema documentation.

Hi @sdwelrn
It is expected and it was published in the forum a few weeks ago Enforcing a cap on all connection fields of 100 items

We’ll add it to the schema and our developer documentation.

Have a nice day!