Paging through customer addresses via graphql endpoint

Hi - I’m trying to get all addresses for a customer. Some of our customers have hundreds of addresses and that count will grow due to the nature of our use case.

First, a few notes:

However, a few issues

  • customer.address does not have a pageInfo parameter. When I include it in my query, I get: Field ‘pageInfo’ doesn’t exist on type ‘MailingAddress’
  • customer does not include an addressesV2 parameter, despite what the documentation suggests. When I include it in my query, I get: Field ‘addressesV2’ doesn’t exist on type ‘Customer’

How can I page through all customer addresses with graphql?

Thanks!
Jason

1 Like