telys_count
Get the live row count for a collection, optionally filtered by a single-key equality condition. Perform a cheap size check without retrieving the full id list.
Instructions
Return the live row count (post-tombstone) for a collection, optionally where-scoped. Use for a cheap size check without pulling the full id list. Required: collection. Optional: where — a single-key equality filter (one key only). Fails when the collection does not exist or when where carries more than one key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| where | No | optional single-key equality filter | |
| collection | Yes |