I’m experiencing inconsistent behavior with the productsCount GraphQL query when using limit: null across different API versions.
Working Query (API 2025-07):
graphql
query {
productsCount(limit: null, query: "status:ACTIVE") {
count
precision
}
}
Result with 2025-07: Returns exact count with precision: "EXACT"
Same Query (API 2024-07): Returns capped count at 10,000 with precision: "AT_LEAST"
Steps to Reproduce
- Use GraphQL endpoint:
https://shop-name.myshopify.com/admin/api/2024-07/graphql.json - Execute the productsCount query with
limit: nulland any query filter - Result: Count is capped at 10,000 despite using
limit: null - Switch to API version 2025-07
- Execute same query
- Result: Returns actual count without cap
Expected Behavior
According to the documentation, limit: null should remove the 10,000 default limit regardless of API version. The behavior should be consistent across API versions.
Actual Behavior
- 2024-07:
limit: nullis ignored when using query filters, still caps at 10,000 - 2025-07:
limit: nullworks as documented
Questions
- Is this a known bug in the 2024-07 API version?
- Was there a specific fix implemented in 2025-07 that addresses this issue?
- Are there any breaking changes between these versions that affect
productsCount? - Should we expect this behavior to be backported to earlier API versions?
Environment
- API Versions tested: 2024-07 vs 2025-07
- Query: GraphQL
productsCountwith query filters - Access scope:
read_products
Any insights would be greatly appreciated!