Count documents matching a filter query with RBAC enforcement
filter parameter supports MongoDB query operators:
$eq: Equal to$ne: Not equal to$gt: Greater than$gte: Greater than or equal to$lt: Less than$lte: Less than or equal to$in: Value is in array$nin: Value is not in array$and: All conditions must match$or: At least one condition must match$not: Inverts the condition$exists: Field exists/doesn’t existhandlers_query.go:470-477:
The count operation automatically combines the provided filter with RBAC query filters. This ensures users only count documents they have permission to read.
handlers_query.go:492-493
pkg/api/handlers_query.go:422-502