How can I get the total number of products

I’m doing a migration from admin REST APi to graphQL and I used to use this API /admin/api/2024-10/products/count.json to get the number of products

now when trying to use graphQL for example:

{
  "query": "query MyQuery { productsCount {count precision} collectionsCount { count precision}}"
}

I’m getting 10,000

 "data": {
        "productsCount": {
            "count": 10000,
            "precision": "AT_LEAST"
        },
        "collectionsCount": {
            "count": 788,
            "precision": "EXACT"
        }
    }

which is not the real count the store has 54,000 products, how can I get the real number?

Thanks

Hey, theres a post already around this :slight_smile: