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:
- I understand pagination from https://shopify.dev/api/usage/pagination-graphql
- I also understand the customer graphql resource from https://shopify.dev/api/admin-graphql/2022-07/queries/customer
- I tried using API version 2022-10 but am getting a shopify.api_version.VersionNotFoundError exception
- As a result, I tried all of this with the 2022-07 version
- I am using the python SDK package
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