Query: List and sort customers

For a specific business, fetches the first page of customer records sorted alphabetically. Additional sort options are available, like MODIFIED_AT_DESC. See schema.

Replace <BUSINESS_ID> with a real business id.

Operation
query {
  business(id: "<BUSINESS_ID>") {
    id
    customers(page: 1, pageSize: 20, sort: [NAME_ASC]) {
      pageInfo {
        currentPage
        totalPages
        totalCount
      }
      edges {
        node {
          id
          name
          email
        }
      }
    }
  }
}
Updated: