Skip to content

Conversation

sandhose
Copy link
Member

This adds a count=true|false|only option to all the list methods in the admin API to:

  • true: compute the total count of items matching the filters (the default)
  • false: don't compute the total count
  • only: compute the total count of items matching the filters, but don't return the items themselves

This allows removing the count calculation when not needed, or to skip
the list of items entirely.
@sandhose sandhose added A-Admin-API Related to the admin API T-Enhancement New feature of request labels Sep 29, 2025
Copy link

cloudflare-workers-and-pages bot commented Sep 29, 2025

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0d71448
Status: ✅  Deploy successful!
Preview URL: https://5de81374.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-admin-api-optional.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose enabled auto-merge September 30, 2025 09:48
@sandhose sandhose merged commit 58864ac into main Sep 30, 2025
20 checks passed
@sandhose sandhose deleted the quenting/admin-api/optional-count branch September 30, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Admin-API Related to the admin API T-Enhancement New feature of request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant