telys_count
Count live rows in a collection, optionally filtered by a single-key equality condition. Retrieve post-tombstone cardinality to verify current data.
Instructions
Return the live row count (post-tombstone) for a collection — cardinality only, optionally where-scoped. Siblings: telys_stats for aggregate stats (partition key, live id count, runtime index counters); telys_ids to enumerate the ids themselves. Required: collection — the name of an existing collection in the active store; the call fails when it does not exist (write first via telys_add or telys_create_collection). Optional: where — a single-key equality filter (one key only); more than one key fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| where | No | optional single-key equality filter, e.g. scope=project:acme (one key only) | |
| collection | Yes | name of an existing collection in the active store |