Query site records
query_site_recordsUse when the user asks who signed up, what was submitted, or wants to see the responses. Queries a collection's append-only records (newest-first by default). Filter with where (field/value equality), set order (asc|desc) and limit. Each record carries its server-stamped actor. Scoped to a site you own.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max records to return (capped at 200) | |
| order | No | Sort by creation time | |
| where | No | Equality filters on record fields | |
| site_id | Yes | The site that owns the collection | |
| collection | Yes | The collection to query | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). | |
| latest_per_key | No | Fold edit events to the newest record per logical `key` field (current state), instead of the full history |