Skip to content

Commit f997cf8

Browse files
committed
docs(skills): objectstack-query — engine aggregate row admits search / searchFields
The Calling Convention row for engine `aggregate` stopped at `timezone`, while `ENGINE_AGGREGATE_OPTION_KEYS` admits `search` and `searchFields` and `aggregate()` expands them through the same ADR-0061 expander `find` uses. Together with the closed-set sentence the row told an agent that a searched aggregate is refused. The row now lists both keys and says they filter the input rows before grouping, AND-ed with `where`. Claude-Session: https://claude.ai/code/session_01KTZmMfzVzjNvyaLyQ8mHvg Co-authored-by: Claude <noreply@anthropic.com>
1 parent c9c182e commit f997cf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎skills/objectstack-query/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ metadata:
2323
| Surface | Shape | Legal option keys |
2424
|:--|:--|:--|
2525
| engine `find` / `findOne` | `engine.find('task', {…}, { context })` | `context`, `where`, `fields`, `orderBy`, `limit`, `offset`, `search`, `searchFields`, `expand` — **plus** the six driver passthrough keys `transaction`, `tenantId`, `tenantIds`, `timezone`, `bypassTenantAudit`, `preserveAudit` |
26-
| engine `aggregate` | `engine.aggregate('deal', {…})` | `context`, `where`, `groupBy`, `aggregations`, `having`, `timezone` |
26+
| engine `aggregate` | `engine.aggregate('deal', {…})` | `context`, `where`, `groupBy`, `aggregations`, `having`, `timezone`, `search`, `searchFields` — the two search keys filter the input rows **before** grouping, AND-ed with `where`, exactly as on `find` |
2727
| engine `count` | `engine.count('task', {…})` | `context`, `where` |
2828
| protocol / REST | `findData({ object: 'task', query: {…} })` | `object` sits OUTSIDE the query |
2929
| nested `expand` value | a `QueryAST` — `{ object, fields, where }` | (see **Expand**) |

0 commit comments

Comments
 (0)