Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Cursor Based Pagination Not working on Locations in GraphQL Admin API

Cursor Based Pagination Not working on Locations in GraphQL Admin API

kintsugi_rajwan
Visitor
1 0 0

In Lcations model cursor based pagination not working in graphQL Admin API.

My graphQL query 

 

query GetLocations($first: Int!, $after: String) {
  locations(first: $first, after: $after, includeLegacy: true) {
    pageInfo {
      hasNextPage
      endCursor
    }
    nodes {
      id
      name
      createdAt
      address {
        address1
        address2
        city
        countryCode
        provinceCode
        zip
        phone
      }
    }
  }
}

Here is the Jam video
https://jam.dev/c/75f6446a-9bfe-4fc5-ae76-8b08d8db760b

Replies 0 (0)