productTypes, productTags, productVendors pagination not working in graphql

Highlighted
Tourist
8 0 1

There is a bug which is still not solved after so many complains about this issue.

  1. after parameter is missing, It is not working. 
  2. hasNextPage always return false, When there is more items.
  3. first: 10 This will return only 1 item, It should return 10 items. I guess there is a problem with 0.
  4. Please add endCursor parameter in pageInfo. See original graphql documentation . Hint

 

    {
    shop {
      productTypes  (first: 10, after:"cursor") {
        edges {
          node
          cursor
          }
          
          pageInfo {
              hasNextPage
              hasPreviousPage
          }    
          
          
        }
        

     
      }
    
  }

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
481 63 107

Hey @tahafarooqui,

 

I've been able to replicate the issue you describe in #1 and #2. It seems we return PageInfo but don't accept any cursor arguments for that object. I'll be raising this with our developers to clarify the expected behaviour, and I'll post back here once I have an update.

 

I wasn't able to replicate what you described in your point #3. When I ask for the first 10 results in my test store, I get 10 back as expected. Are you sure the store you're querying has more than 1 product type?

 

For #4 please note that this isn't mentioned in our documentation and isn't currently expected in the pageInfo response. I will submit feedback to our product teams to have this property added, which will ensure it can be considered for any future changes to the platform. I can't make and promises as to if/when this will be implemented, but I will make sure this information gets to the right people who can make that decision.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

1 Like
Highlighted
Tourist
8 0 1

Does it fixed ?? any response

0 Likes
Highlighted
New Member
1 0 0

Hello @_JB , is there any news on this subject? We are developing apps that would benefit from this to work, as otherwise you need to cycle through all the products in order to get these infomations.

0 Likes