How to show all collections in react-native app using graphql

How to show all collections in react-native app using graphql

IffiChaudhry14
New Member
6 0 0

Hello Everyone, i,m buiding private app for my Shopify store in React native. I am using Storefront graphql for fetching all data from api's. But i have 1 issue in showing collections in my app. I want to show all collections in my app my i couldn't found any property to get all collections in collections graphql api. Please tell me how can i fetch all collections in my app. Thanks in advance shopify community. Below is my code where i can only fetch certain number of collections but i want all to show all collections in my app. Please help me

 const Collections = `
        {
            collections(first:25) {  
              edges {
                node {
                  id
                  title
                  handle
                  image {
                    altText
                    originalSrc
                    transformedSrc(maxHeight: 1000, maxWidth: 2048, crop: CENTER)
                  }
                  products(first:1){
                      edges{
                          node{
                              id
                              description(truncateAt: 200)
                          }
                      }
                  }

                }
              }
            }
          }
        `

 

Replies 0 (0)