Product count using Graphql.

parth-gondaliya
Shopify Partner
20 0 8

How to get product count in the shop using Graphql?

We can get it from REST but I couldn't found in GraphQl.

 

PLEASE HELP!!!

Reply 1 (1)
Gregarican
Shopify Partner
1033 86 282

I don't believe GraphQL can give you a one-shot count of all products in a Shopify store. The REST API call works, is pretty basic to implement, so I'd suggest just using that in your project. Figure there are no query parameters to utilize, no request body to construct, etc. Just invoke the proper URL, provide your API credentials, and the response will come back!