Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
fix: remove depth from count operation types (#15356)
The `payload.count`, `payload.countVersions` and `payload.countGlobalVersions` operations accepted a `depth` argument, but this value is never used in the count logic. Having it show up in auto-suggestions can be confusing for users (as I just experienced), since it raises the question of why a count operation would need a depth at all. This PR removes the unused depth property
A
Alessio Gravili committed
dfc1600364faf81c8af4f1bfe18db747775fcd9e
Parent: 614f13c
Committed by GitHub <noreply@github.com>
on 1/26/2026, 6:14:24 PM