hasNextPage is false, but I can get the next page by passing the cursor

query($query: String, $first: Int, $sortKey: ProductSortKeys, $reverse: Boolean, $after: String) {
            products(query: $query, first: $first, sortKey: $sortKey, reverse: $reverse, after: $after) {
              edges {
                cursor
                node {
                  id
                  title
          ~~~~~~~~~~~~
              pageInfo {
                endCursor
                hasNextPage
                hasPreviousPage
                startCursor
              }
            }
          }
variables: {:query=>"(tag:something_tag) OR (tag:something_tag)", :first=>30, :after=>"eyJsYXN0X2lxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==", :sortKey=>"CREATED_AT", :reverse=>true}

hasNextPage is false, but I can get the next page by passing the cursor
Is there something wrong with this code?

@8ssNbSkkkZ6u ,

I know this is super old but did you every figure this out? I’m running into this exact same problem. hasNextPage is false, yet there’s another 200 products in the set I’m querying.

If I change my page size, the count is different as well. Something seems off here with pagination.

@Kris_Doyle Use the actual dev forums, way higher chance of dev solutions and chance of a shopify-dev-staff response.