Paginating shop.ordertags

We’re trying to get all the order tags for a shop.

Using the shop object, and then getting first 10 orderTags. The pageInfo.hasNextPage is always false even though we know there’s more orderTags.

For example:

{
  shop {
  	orderTags(first:10) {
      edges {node cursor}
    	pageInfo {
      	hasNextPage
      	endCursor
    	}
  	}
  }
}

Using 2025-07, but the same applies for previous versions also

Hi @David_DB

This is a current and known limitation with our API - tags like order tags and customer tags don’t currently support pagination. You can get the first 250 but you won’t be able to use after to get the next.

Ok. Please update this documentation to show that it does not support pagination. Because currently it points to the pagination info.

The Bulk Operation API can be used to retrieve all resources for a given query and skip pagination.

That might be a solution.

The downside is that it’s not synchronous, but I’m imagining that you’re trying to retrieve all of these tags so you can provide an autocomplete dropdown UI element for your app.

But correct me if I’m wrong!

Hi Dylan,

Thanks for the suggestion, but as you probably know this is a once instance operation per shop at any time (which would not work for us), and even the minimum query would take way too long.